diff --git a/src/main/java/de/likewhat/customheads/listener/InventoryListener.java b/src/main/java/de/likewhat/customheads/listener/InventoryListener.java index b36eab0..3180213 100644 --- a/src/main/java/de/likewhat/customheads/listener/InventoryListener.java +++ b/src/main/java/de/likewhat/customheads/listener/InventoryListener.java @@ -547,7 +547,7 @@ public class InventoryListener implements Listener { if(playerInventory.getHelmet() != null) { ItemStack helmetItem = playerInventory.getHelmet().clone(); if (Utils.getNextFreeInventorySlot(playerInventory, helmetItem) < 0) { - return; + return; // We can't add the Helmet to the Inventory. So we don't do anything } playerInventory.setHelmet(null); playerInventory.addItem(helmetItem); diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index d3498f5..cf30516 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -45,11 +45,6 @@ # Categories to the Cursor otherwise it will be added # # to your Inventory like /give # # --------------------------------------------------- # -# replaceHelmet: Whether or not to replace the Helmet # -# When Shift-Right clicking a Head # -# When false the Helmet will be returned into the # -# Inventory # -# --------------------------------------------------- # # disabledCategories: A List of Categories which will # # be ignored by the Plugin # # --------------------------------------------------- # @@ -87,7 +82,6 @@ update-notifications: onJoin: true console: true grabHeadToCursor: true -replaceHelmet: false disabledCategories: [] langFile: none reducedDebug: true \ No newline at end of file