Remove Config Variable from last Commit

Actually implemented this so it doesn't replace the Helmet and just add it to the Inventory
This commit is contained in:
LikeWhat 2023-10-13 22:32:05 +02:00
parent fe5306e1d4
commit 72af106c75
2 changed files with 1 additions and 7 deletions

View File

@ -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);

View File

@ -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