From 3567940ddad5b176ab502d8470ba303cc977de9a Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Fri, 18 Nov 2016 09:14:51 +1100 Subject: [PATCH] Remove now redundant code By: md_5 --- .../java/org/bukkit/craftbukkit/event/CraftEventFactory.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java index 1c67ee9f57..b84b376a32 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java @@ -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);