diff options
author | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2019-03-04 23:03:46 +0000 |
---|---|---|
committer | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2019-03-04 23:03:46 +0000 |
commit | 0e8070f3eb5149c7223049f93b4df86adb63ea57 (patch) | |
tree | b09614abbc567e338dd6ee5f423d3da5436ae961 /src/Java/gtPlusPlus/plugin | |
parent | a3ad39894856101326b5e6a9273d33a1ccaeb921 (diff) | |
download | GT5-Unofficial-0e8070f3eb5149c7223049f93b4df86adb63ea57.tar.gz GT5-Unofficial-0e8070f3eb5149c7223049f93b4df86adb63ea57.tar.bz2 GT5-Unofficial-0e8070f3eb5149c7223049f93b4df86adb63ea57.zip |
- Removing some logging.
$ Fixed Bed Height > 128 not working as intended.
$ Fixed IC2 ASM for wrench harvesting.
$ Fixed TC4 ASM.
$ Fixed Invalid Giant Chicken Texture handling.
Diffstat (limited to 'src/Java/gtPlusPlus/plugin')
-rw-r--r-- | src/Java/gtPlusPlus/plugin/fixes/vanilla/VanillaBedHeightFix.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Java/gtPlusPlus/plugin/fixes/vanilla/VanillaBedHeightFix.java b/src/Java/gtPlusPlus/plugin/fixes/vanilla/VanillaBedHeightFix.java index e0fef80b52..4a0c8d3d6c 100644 --- a/src/Java/gtPlusPlus/plugin/fixes/vanilla/VanillaBedHeightFix.java +++ b/src/Java/gtPlusPlus/plugin/fixes/vanilla/VanillaBedHeightFix.java @@ -7,6 +7,7 @@ import cpw.mods.fml.common.eventhandler.EventPriority; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import gtPlusPlus.api.objects.Logger; import gtPlusPlus.core.util.Utils; +import gtPlusPlus.core.util.reflect.ReflectionUtils; import gtPlusPlus.plugin.fixes.interfaces.IBugFix; import gtPlusPlus.preloader.DevHelper; import net.minecraft.entity.player.EntityPlayer; @@ -17,9 +18,11 @@ public class VanillaBedHeightFix implements IBugFix { private final Method mSleepInBedAt; public VanillaBedHeightFix() { - if (DevHelper.isValidHelperObject()) { - Method m = DevHelper.getForgeMethod(EntityPlayer.class, "sleepInBedAt", int.class, int.class, - int.class); + if (DevHelper.isValidHelperObject()) { + Method m = ReflectionUtils.getMethod(EntityPlayer.class, "sleepInBedAt", int.class, int.class, int.class); + if (m == null) { + m = ReflectionUtils.getMethod(EntityPlayer.class, "func_71018_a", int.class, int.class, int.class); + } if (m != null) { mSleepInBedAt = m; Utils.registerEvent(this); |