Skip to content

Commit

Permalink
Fix teleposer costing no LP with interdim travel
Browse files Browse the repository at this point in the history
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
  • Loading branch information
GTNH-Colen authored Apr 21, 2021
1 parent 6706247 commit 63289fe
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,14 @@ public void updateEntity()
{
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();
Expand Down

0 comments on commit 63289fe

Please sign in to comment.