This commit is contained in:
parent
9e0edf763a
commit
5dbfb589ee
|
@ -1,5 +1,8 @@
|
|||
# Changelog
|
||||
|
||||
**Beta 0.1.5**
|
||||
* Fix Energy Teleporter Y Issues Again
|
||||
|
||||
**Beta 0.1.4**
|
||||
* Fix Bug Where Off Switches Require Power
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ org.gradle.jvmargs = -Xmx1G
|
|||
fabric_loader_version = 0.9.0+build.204
|
||||
|
||||
# Mod Properties
|
||||
mod_version = 0.1.4
|
||||
mod_version = 0.1.5
|
||||
maven_group = com.thebrokenrail
|
||||
|
||||
# Dependencies
|
||||
|
|
|
@ -55,9 +55,9 @@ class EnergyTeleporter {
|
|||
private static int convertY(int y, int oldHeight, int newHeight) {
|
||||
int newY = (int) (((float) y / (float) oldHeight) * (float) newHeight);
|
||||
|
||||
int bottomPadding = HardcodedConfig.ENERGY_PORTAL_Y_PADDING;
|
||||
int topPadding = bottomPadding + HardcodedConfig.ENERGY_PORTAL_Y_PADDING_EXTRA_TOP;
|
||||
newY = Math.max(bottomPadding, Math.min(topPadding, newY));
|
||||
int bottomY = HardcodedConfig.ENERGY_PORTAL_Y_PADDING;
|
||||
int topY = newHeight - (bottomY + HardcodedConfig.ENERGY_PORTAL_Y_PADDING_EXTRA_TOP);
|
||||
newY = Math.max(bottomY, Math.min(topY, newY));
|
||||
|
||||
return newY;
|
||||
}
|
||||
|
|
Reference in New Issue
Block a user