switched to use reflection because im 2 lazy to setupdecompworkspace
package com.matt.forgehax.mods;
+import com.matt.forgehax.Wrapper;
import com.matt.forgehax.events.LocalPlayerUpdateEvent;
import com.matt.forgehax.util.key.Bindings;
import net.minecraft.util.datafix.fixes.HorseSaddle;
@@ -21,16 +22,13 @@ public class HorseJump extends ToggleMod {
@SubscribeEvent
public void onLocalPlayerUpdate(LocalPlayerUpdateEvent event) {
- MC.player.horseJumpPower = 1.0F;// right now the enviorment is non obfuscated
+ //MC.player.horseJumpPower = 1.0F;// right now the enviorment is non obfuscated
- /*
- run that when ur ready to build
-
ReflectionHelper.setPrivateValue(EntityPlayerSP.class,
- getLocalPlayer(),
+ Wrapper.getLocalPlayer(),
1.0F,
- "horseJumpPower", "field_110321_bQ");*/
+ "horseJumpPower", "field_110321_bQ");
// when u see something like fieldNames... that is var args which is pretty much an array
// which would be new String[] {"horseJumpPower", "field_110321_bQ"}
}
