mirror of
https://github.com/IHasName/CustomHeads.git
synced 2024-11-25 05:55:11 +01:00
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:
parent
fe5306e1d4
commit
72af106c75
@ -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);
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user