Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
Remove now redundant code
Dieser Commit ist enthalten in:
Ursprung
64032adfd2
Commit
b2f82f0f7f
@ -220,10 +220,6 @@ public class CraftEventFactory {
|
|||||||
}
|
}
|
||||||
BlockFace blockFace = CraftBlock.notchToBlockFace(direction);
|
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));
|
PlayerInteractEvent event = new PlayerInteractEvent(player, action, itemInHand, blockClicked, blockFace, (hand == null) ? null : ((hand == EnumHand.OFF_HAND) ? EquipmentSlot.OFF_HAND : EquipmentSlot.HAND));
|
||||||
if (cancelledBlock) {
|
if (cancelledBlock) {
|
||||||
event.setUseInteractedBlock(Event.Result.DENY);
|
event.setUseInteractedBlock(Event.Result.DENY);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren