Skip to content

Commit

Permalink
Fix issue #1974
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Nov 28, 2019
1 parent d0dcb23 commit 6c4682b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ public void trySwim(org.bukkit.entity.Entity entity, float power) {
Entity handle = NMSImpl.getHandle(entity);
if (handle == null)
return;
if (RANDOM.nextFloat() < 0.8F && (handle.isInWaterOrRain() || handle.ay())) {
if (RANDOM.nextFloat() < 0.8F && (handle.isInWater() || handle.ay())) {
handle.setMot(handle.getMot().getX(), handle.getMot().getY() + power, handle.getMot().getZ());
}
}
Expand Down

0 comments on commit 6c4682b

Please sign in to comment.