mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 19:34:09 +01:00
Remove now redundant code
By: md_5 <git@md-5.net>
This commit is contained in:
parent
a75c80e93d
commit
3567940dda
1 changed files with 0 additions and 4 deletions
|
@ -220,10 +220,6 @@ public class CraftEventFactory {
|
|||
}
|
||||
BlockFace blockFace = CraftBlock.notchToBlockFace(direction);
|
||||
|
||||
if (itemInHand.getType() == Material.AIR || itemInHand.getAmount() == 0) {
|
||||
itemInHand = null;
|
||||
}
|
||||
|
||||
PlayerInteractEvent event = new PlayerInteractEvent(player, action, itemInHand, blockClicked, blockFace, (hand == null) ? null : ((hand == EnumHand.OFF_HAND) ? EquipmentSlot.OFF_HAND : EquipmentSlot.HAND));
|
||||
if (cancelledBlock) {
|
||||
event.setUseInteractedBlock(Event.Result.DENY);
|
||||
|
|
Loading…
Reference in a new issue