mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-07 16:57:42 +01:00
Fix for placing blocks after interacting with a block
By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
parent
3e56181918
commit
b0cbecff2b
@ -30,7 +30,7 @@ public class PlayerInteractEvent extends PlayerEvent implements Cancellable {
|
|||||||
this.blockClicked = clickedBlock;
|
this.blockClicked = clickedBlock;
|
||||||
this.blockFace = clickedFace;
|
this.blockFace = clickedFace;
|
||||||
|
|
||||||
useItemInHand = item == null ? Result.DENY : Result.ALLOW;
|
useItemInHand = item == null ? Result.DENY : Result.DEFAULT;
|
||||||
useClickedBlock = clickedBlock == null ? Result.DENY : Result.ALLOW;
|
useClickedBlock = clickedBlock == null ? Result.DENY : Result.ALLOW;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user