mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
SPIGOT-5373: Simultaneous left+right click in creative mode does not work
By: md_5 <git@md-5.net>
This commit is contained in:
parent
791c4f2d14
commit
fbf89b2c4c
1 changed files with 2 additions and 3 deletions
|
@ -242,7 +242,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -272,12 +410,41 @@
|
@@ -272,12 +410,40 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -253,7 +253,6 @@
|
||||||
BlockPosition blockposition = movingobjectpositionblock.getBlockPosition();
|
BlockPosition blockposition = movingobjectpositionblock.getBlockPosition();
|
||||||
IBlockData iblockdata = world.getType(blockposition);
|
IBlockData iblockdata = world.getType(blockposition);
|
||||||
+ EnumInteractionResult enuminteractionresult = EnumInteractionResult.PASS;
|
+ EnumInteractionResult enuminteractionresult = EnumInteractionResult.PASS;
|
||||||
+ if (iblockdata.isAir()) return enuminteractionresult;
|
|
||||||
+ boolean cancelledBlock = false;
|
+ boolean cancelledBlock = false;
|
||||||
|
|
||||||
if (this.gamemode == EnumGamemode.SPECTATOR) {
|
if (this.gamemode == EnumGamemode.SPECTATOR) {
|
||||||
|
@ -284,7 +283,7 @@
|
||||||
|
|
||||||
if (itileinventory != null) {
|
if (itileinventory != null) {
|
||||||
entityhuman.openContainer(itileinventory);
|
entityhuman.openContainer(itileinventory);
|
||||||
@@ -289,24 +456,26 @@
|
@@ -289,24 +455,26 @@
|
||||||
boolean flag = !entityhuman.getItemInMainHand().isEmpty() || !entityhuman.getItemInOffHand().isEmpty();
|
boolean flag = !entityhuman.getItemInMainHand().isEmpty() || !entityhuman.getItemInOffHand().isEmpty();
|
||||||
boolean flag1 = entityhuman.isSneaking() && flag;
|
boolean flag1 = entityhuman.isSneaking() && flag;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue