Using a more efficient check.

This commit is contained in:
Andrew2448 2013-04-11 21:02:18 -04:00
parent 44d8169b15
commit cc6de168b3

View file

@ -46,7 +46,7 @@ public class SwimAssistModule extends PowerModuleBase implements IToggleableModu
@Override
public void onPlayerTickActive(EntityPlayer player, ItemStack item) {
if (player.isInWater() && !(player.ridingEntity instanceof EntityBoat)) {
if (player.isInWater() && !(player.isRiding())) {
ItemStack pants = player.getCurrentArmor(1);
PlayerInputMap movementInput = PlayerInputMap.getInputMapFor(player.username);
boolean jumpkey = movementInput.jumpKey;