Use motY = 0.5 instead of calling bf()

This commit is contained in:
fullwall 2012-10-30 14:58:35 +08:00
parent b45da033f8
commit 4ebb4c98b3

View File

@ -140,8 +140,9 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder {
if (inLiquid) {
motY += 0.04;
} else //(handled elsewhere)*/
if (onGround && Math.abs(bW) < EPSILON) {
bf(); // jump
if (onGround && bW == 0) {
// bf(); // jump
motY = 0.5F;
bW = 10;
}
} else