mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-25 22:34:26 +00:00
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:
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();
|
||||
|
||||
Reference in new issue
Block a user