Added increase in speed for Routing nodes inside of a chunk with Demon Aura
This commit is contained in:
parent
25bfa0c969
commit
912f1694e8
2 changed files with 9 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
|||
package WayofTime.bloodmagic.tile.routing;
|
||||
|
||||
import WayofTime.bloodmagic.api.Constants;
|
||||
import WayofTime.bloodmagic.api.soul.EnumDemonWillType;
|
||||
import WayofTime.bloodmagic.demonAura.WorldDemonWillHandler;
|
||||
import WayofTime.bloodmagic.routing.*;
|
||||
import WayofTime.bloodmagic.tile.TileInventory;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
@ -109,7 +111,7 @@ public class TileMasterRoutingNode extends TileInventory implements IMasterRouti
|
|||
}
|
||||
}
|
||||
|
||||
int maxTransfer = 8;
|
||||
int maxTransfer = this.getMaxTransferForDemonWill(WorldDemonWillHandler.getCurrentWill(worldObj, pos, EnumDemonWillType.DEFAULT));
|
||||
|
||||
for (Entry<Integer, List<IItemFilter>> outputEntry : outputMap.entrySet())
|
||||
{
|
||||
|
@ -132,6 +134,11 @@ public class TileMasterRoutingNode extends TileInventory implements IMasterRouti
|
|||
}
|
||||
}
|
||||
|
||||
public int getMaxTransferForDemonWill(double will)
|
||||
{
|
||||
return 8 + (int) (will / 25);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToNBT(NBTTagCompound tag)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue