mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-23 21:49:58 +00:00
Merge pull request #3080 from HenryLoenwind/farmCfg
Added config option for farm size
This commit is contained in:
commit
fa18bf0636
2 files changed
+5
-3
No files matched your search
@@ -287,6 +287,7 @@ public final class Config {
|
||||
public static int farmBonemealTryEnergyUseRF = 80;
|
||||
|
||||
public static int farmDefaultSize = 3;
|
||||
public static int farmBonusSize = 2;
|
||||
public static boolean farmAxeDamageOnLeafBreak = false;
|
||||
public static float farmToolTakeDamageChance = 1;
|
||||
public static boolean disableFarmNotification = false;
|
||||
@@ -1048,6 +1049,8 @@ public final class Config {
|
||||
|
||||
farmDefaultSize = config.get(sectionFarm.name, "farmDefaultSize", farmDefaultSize,
|
||||
"The number of blocks a farm will extend from its center").getInt(farmDefaultSize);
|
||||
farmBonusSize = config.get(sectionFarm.name, "farmBonusSize", farmBonusSize,
|
||||
"The extra number of blocks a farm will extend from its center per upgrade").getInt(farmBonusSize);
|
||||
|
||||
farmAxeDamageOnLeafBreak = config.get(sectionFarm.name, "farmAxeDamageOnLeafBreak", farmAxeDamageOnLeafBreak,
|
||||
"Should axes in a farm take damage when breaking leaves?").getBoolean(farmAxeDamageOnLeafBreak);
|
||||
|
||||
@@ -133,8 +133,6 @@ public class TileFarmStation extends AbstractPoweredTaskEntity {
|
||||
|
||||
private final BitSet lockedSlots = new BitSet();
|
||||
|
||||
private final int upgradeBonusSize = 2;
|
||||
|
||||
public String notification = "";
|
||||
public boolean sendNotification = false;
|
||||
|
||||
@@ -195,7 +193,7 @@ public class TileFarmStation extends AbstractPoweredTaskEntity {
|
||||
if(inventory[upg] == null) {
|
||||
return 0;
|
||||
} else {
|
||||
return upgradeBonusSize * inventory[upg].getItemDamage();
|
||||
return Config.farmBonusSize * inventory[upg].getItemDamage();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -772,6 +770,7 @@ public class TileFarmStation extends AbstractPoweredTaskEntity {
|
||||
nbtRoot.setInteger("slotLayoutVersion", 3);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getInventoryStackLimit(int slot) {
|
||||
if (slot >= minSupSlot && slot <= maxSupSlot) {
|
||||
switch (getCapacitorType()) {
|
||||
|
||||
Reference in new issue
Block a user