using isEnabled() instead of getting enabled command
@@ -2,24 +2,19 @@ package com.matt.forgehax.mods;
import com.matt.forgehax.asm.ForgeHaxHooks;
import com.matt.forgehax.asm.events.AddCollisionBoxToListEvent;
-import com.matt.forgehax.asm.events.LocalPlayerUpdateMovementEvent;
import com.matt.forgehax.asm.events.PacketEvent;
import com.matt.forgehax.asm.reflection.FastReflection;
import com.matt.forgehax.events.LocalPlayerUpdateEvent;
-import com.matt.forgehax.util.command.Setting;
import com.matt.forgehax.util.entity.EntityUtils;
-import com.matt.forgehax.util.entity.LocalPlayerUtils;
import com.matt.forgehax.util.mod.ToggleMod;
import com.matt.forgehax.util.mod.loader.RegisterMod;
import net.minecraft.block.BlockLiquid;
import net.minecraft.entity.Entity;
import net.minecraft.entity.item.EntityBoat;
-import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.network.play.client.CPacketPlayer;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.MathHelper;
-import net.minecraft.util.text.TextComponentString;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import static com.matt.forgehax.Helper.getModManager;
@@ -34,7 +29,7 @@ public class Jesus extends ToggleMod {
@SubscribeEvent
public void onLocalPlayerUpdate(LocalPlayerUpdateEvent event) {
- if (!getModManager().getMod("Freecam").<Setting>getCommand("enabled").getAsBoolean()) {
+ if (!getModManager().getMod("Freecam").isEnabled()) {
if (isInWater(MC.player) && !MC.player.isSneaking()) {
MC.player.motionY = 0.1;
if (MC.player.getRidingEntity() != null && !(MC.player.getRidingEntity() instanceof EntityBoat)) {
