Fix teleposer costing no LP with interdim travel

The teleposer currently costs no LP if the x, y and z coordinates of your teleposers are the same between the dimensions you're teleporting between. This adds a base cost of 2000 making sure it will always drain some LP. This is a very simple PR but I don't program in java usually so appreciate scrutiny :p
This commit is contained in:
GTNH-Colen authored and GitHub committed 2021-04-21 09:10:33 +01:00
1 parent 67062474fa
commit 63289fe116
1 file changed
+8 -4
@@ -146,10 +146,14 @@ public class TETeleposer extends TEInventory
{
entityCount = 0;
}
SoulNetworkHandler.syphonFromNetwork(focus, damage * transportCount + damage * entityCount);
//Teleport
//Teleport
if (damage * transportCount + damage * entityCount < 2000) {
SoulNetworkHandler.syphonFromNetwork(focus, 2000);
} else {
SoulNetworkHandler.syphonFromNetwork(focus, damage * transportCount + damage * entityCount);
}
if (worldF.equals(worldObj))
{
iterator1 = list1.iterator();