diff --git a/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/listeners/MiddleClickListener.java b/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/listeners/MiddleClickListener.java index 38dc963e7e..8206cb12f6 100644 --- a/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/listeners/MiddleClickListener.java +++ b/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/listeners/MiddleClickListener.java @@ -42,7 +42,10 @@ public void onInventoryCreativeEvent(InventoryCreativeEvent e) { * ClickType is not MIDDLE but CREATIVE (because this ClickType covers * multiple cases, we have to filter out more later on) */ - if (e.getClick() == ClickType.CREATIVE && e.getSlotType() == SlotType.QUICKBAR && e.getWhoClicked() instanceof Player player) { + if (e.getClick() == ClickType.CREATIVE + && e.getSlotType() == SlotType.QUICKBAR + && e.getWhoClicked() instanceof Player player + ) { // get the block the player is looking at for later Block b = player.getTargetBlockExact(5);