content: package me.earth.earthhack.impl.modules.movement.boatfly;
  
  import me.earth.earthhack.impl.event.events.network.PacketEvent;
  import me.earth.earthhack.impl.event.listeners.ModuleListener;
  import net.minecraft.client.entity.EntityPlayerSP;
  import net.minecraft.client.multiplayer.WorldClient;
  import net.minecraft.network.play.server.SPacketEntity;
  
  final class ListenerEntityLook extends
          ModuleListener<BoatFly, PacketEvent.Receive<SPacketEntity.S16PacketEntityLook>>
  {
  
      public ListenerEntityLook(BoatFly module) {
          super(module, PacketEvent.Receive.class, SPacketEntity.S16PacketEntityLook.class);
      }
  
      @Override
      public void invoke(PacketEvent.Receive<SPacketEntity.S16PacketEntityLook> event) {
          EntityPlayerSP player = mc.player;
          WorldClient world = mc.world;
          if (player != null && player.getRidingEntity() != null && module.noForceBoatMove.getValue())
          {
              if (event.getPacket().getEntity(world) == player.getRidingEntity())
              {
                  event.setCancelled(true);
              }
          }
      }
  
  }
  