Skip to content

Commit

Permalink
Update TETeleposer.java
Browse files Browse the repository at this point in the history
  • Loading branch information
GTNH-Colen authored Apr 21, 2021
1 parent 63289fe commit 00f9ac4
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.util.Iterator;
import java.util.List;
import

import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler;
import net.minecraft.entity.EntityLivingBase;
Expand Down Expand Up @@ -147,12 +148,9 @@ public void updateEntity()
entityCount = 0;
}

//Teleport
if (damage * transportCount + damage * entityCount < 2000) {
SoulNetworkHandler.syphonFromNetwork(focus, 2000);
} else {
SoulNetworkHandler.syphonFromNetwork(focus, damage * transportCount + damage * entityCount);
}
//Teleport with minimum cost of 2000 LP.
int cost = Math.max(damage * transportCount + damage * entityCount, 2000);
SoulNetworkHandler.syphonFromNetwork(focus, cost);

if (worldF.equals(worldObj))
{
Expand Down

0 comments on commit 00f9ac4

Please sign in to comment.