mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-11-07 19:19:32 +01:00
Remove stack limit on blacklisted items.
This commit is contained in:
parent
f54eecfd28
commit
af64e54ecd
@ -56,7 +56,9 @@ public class Methods {
|
||||
String name = Methods.convertToInvisibleString("IS") +
|
||||
compileItemName(itemStack, newAmount);
|
||||
|
||||
if (newAmount > 32) {
|
||||
boolean blacklisted = isMaterialBlacklisted(itemStack.getType());
|
||||
|
||||
if (newAmount > 32 && !blacklisted) {
|
||||
item.setMetadata("US_AMT", new FixedMetadataValue(plugin, newAmount));
|
||||
itemStack.setAmount(32);
|
||||
} else {
|
||||
@ -64,7 +66,7 @@ public class Methods {
|
||||
itemStack.setAmount(newAmount);
|
||||
}
|
||||
|
||||
if ((isMaterialBlacklisted(itemStack.getType()) && !Setting.ITEM_HOLOGRAM_BLACKLIST.getBoolean())
|
||||
if ((blacklisted && !Setting.ITEM_HOLOGRAM_BLACKLIST.getBoolean())
|
||||
|| !plugin.getItemFile().getConfig().getBoolean("Items." + material + ".Has Hologram")
|
||||
|| !Setting.ITEM_HOLOGRAMS.getBoolean()
|
||||
|| newAmount == 1 && !Setting.ITEM_HOLOGRAM_SINGLE.getBoolean()) return;
|
||||
|
Loading…
Reference in New Issue
Block a user