mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-12-29 03:48:43 +01:00
max stack size per entity fix.
This commit is contained in:
parent
57aca313b0
commit
d9c5599998
@ -52,7 +52,7 @@ public class StackingTask extends BukkitRunnable {
|
|||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
int maxItemStackSize = SettingsManager.Settings.MAX_STACK_ITEMS.getInt();
|
int maxItemStackSize = SettingsManager.Settings.MAX_STACK_ITEMS.getInt();
|
||||||
int maxEntityStackSize = SettingsManager.Settings.MAX_STACK_ENTITIES.getInt();
|
int maxEntityStackSizeGlobal = SettingsManager.Settings.MAX_STACK_ENTITIES.getInt();
|
||||||
int minEntityStackAmount = SettingsManager.Settings.MIN_STACK_ENTITIES.getInt();
|
int minEntityStackAmount = SettingsManager.Settings.MIN_STACK_ENTITIES.getInt();
|
||||||
|
|
||||||
List<String> disabledWorlds = SettingsManager.Settings.DISABLED_WORLDS.getStringList();
|
List<String> disabledWorlds = SettingsManager.Settings.DISABLED_WORLDS.getStringList();
|
||||||
@ -118,6 +118,7 @@ public class StackingTask extends BukkitRunnable {
|
|||||||
if (!configurationSection.getBoolean("Mobs." + initalEntity.getType().name() + ".Enabled"))
|
if (!configurationSection.getBoolean("Mobs." + initalEntity.getType().name() + ".Enabled"))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
int maxEntityStackSize = maxEntityStackSizeGlobal;
|
||||||
if (configurationSection.getInt("Mobs." + initalEntity.getType().name() + ".Max Stack Size") != -1)
|
if (configurationSection.getInt("Mobs." + initalEntity.getType().name() + ".Max Stack Size") != -1)
|
||||||
maxEntityStackSize = configurationSection.getInt("Mobs." + initalEntity.getType().name() + ".Max Stack Size");
|
maxEntityStackSize = configurationSection.getInt("Mobs." + initalEntity.getType().name() + ".Max Stack Size");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user