Merge pull request #11 from GTNewHorizons/GTNH-Colen-bloodmagic-teleposer-fix

Fix teleposer costing no LP with interdim travel
This commit is contained in:
Martin Robertz authored and GitHub committed 2021-04-21 18:12:36 +02:00
commit 1fddcd5b40
1 file changed
+5 -4
@@ -146,10 +146,11 @@ public class TETeleposer extends TEInventory
{
entityCount = 0;
}
SoulNetworkHandler.syphonFromNetwork(focus, damage * transportCount + damage * entityCount);
//Teleport
//Teleport with minimum cost of 2000 LP.
int cost = Math.max(damage * transportCount + damage * entityCount, 2000);
SoulNetworkHandler.syphonFromNetwork(focus, cost);
if (worldF.equals(worldObj))
{
iterator1 = list1.iterator();