This commit is contained in:
fullwall 2019-12-21 18:58:33 +09:00
parent ba61a48815
commit 3e708f0d80
2 changed files with 2 additions and 2 deletions

View File

@ -1173,7 +1173,7 @@ public class NMSImpl implements NMSBridge {
Entity handle = NMSImpl.getHandle(entity);
if (handle == null)
return;
if (RANDOM.nextFloat() < 0.8F && (handle.isInWater() || handle.aC())) {
if (RANDOM.nextFloat() < 0.8F && (handle.isInWater() || handle.ay())) {
handle.setMot(handle.getMot().getX(), handle.getMot().getY() + power, handle.getMot().getZ());
}
}

View File

@ -1176,7 +1176,7 @@ public class NMSImpl implements NMSBridge {
Entity handle = NMSImpl.getHandle(entity);
if (handle == null)
return;
if (RANDOM.nextFloat() < 0.8F && (handle.isInWater() || handle.ay())) {
if (RANDOM.nextFloat() < 0.8F && (handle.isInWater() || handle.aC())) {
handle.setMot(handle.getMot().getX(), handle.getMot().getY() + power, handle.getMot().getZ());
}
}