mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-26 15:03:07 +00:00
Fix: Telepad multipart
* Allow coords to be set on any block of the multiblock, not just the master * Prevent maxPower to be 0
This commit is contained in:
1 parent
9f9d0cce3f
commit
75b677a91d
1 file changed
+4
-1
@@ -346,6 +346,9 @@ public class TileTelePad extends TileTravelAnchor implements IInternalPowerRecei
|
||||
int distance = new BlockCoord(this).distance(target);
|
||||
double base = Math.log((0.005 * distance) + 1);
|
||||
this.maxPower = (int) (base * Config.telepadPowerCoefficient);
|
||||
if (this.maxPower <= 0) {
|
||||
this.maxPower = 1;
|
||||
}
|
||||
} else {
|
||||
this.maxPower = Config.telepadPowerInterdimensional;
|
||||
}
|
||||
@@ -523,7 +526,7 @@ public class TileTelePad extends TileTravelAnchor implements IInternalPowerRecei
|
||||
this.target = coords;
|
||||
this.coordsChanged = true;
|
||||
} else {
|
||||
this.master.setCoords(coords);
|
||||
this.master.setCoords_internal(coords);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user