diff --git a/src/main/java/ch/njol/skript/classes/data/BukkitEventValues.java b/src/main/java/ch/njol/skript/classes/data/BukkitEventValues.java index 86a9d97c3e1..f4a0b2a5d15 100644 --- a/src/main/java/ch/njol/skript/classes/data/BukkitEventValues.java +++ b/src/main/java/ch/njol/skript/classes/data/BukkitEventValues.java @@ -644,13 +644,6 @@ else if (hand == EquipmentSlot.OFF_HAND) } }, 0); // PlayerInteractEvent - EventValues.registerEventValue(PlayerInteractEvent.class, Block.class, new Getter() { - @Override - @Nullable - public Block get(final PlayerInteractEvent e) { - return e.getClickedBlock(); - } - }, 0); EventValues.registerEventValue(PlayerInteractEvent.class, ItemType.class, new Getter() { @Override @Nullable @@ -659,6 +652,13 @@ public ItemType get(final PlayerInteractEvent e) { return item == null ? null : new ItemType(item); } }, 0); + EventValues.registerEventValue(PlayerInteractEvent.class, Block.class, new Getter() { + @Override + @Nullable + public Block get(final PlayerInteractEvent e) { + return e.getClickedBlock(); + } + }, 0); EventValues.registerEventValue(PlayerInteractEvent.class, Direction.class, new Getter() { @Override @Nullable