Move various update events to before player tick. Should help with vanishing drops on death.

This commit is contained in:
Sollace 2019-02-19 10:41:36 +02:00
parent 7f7125da77
commit 6f725bb64c

View file

@ -200,13 +200,14 @@ class PlayerCapabilities implements IPlayer {
} }
} }
} }
powers.onUpdate();
inventory.onUpdate();
} }
@Override @Override
public void onUpdate() { public void onUpdate() {
powers.onUpdate();
gravity.onUpdate(); gravity.onUpdate();
inventory.onUpdate();
if (hasEffect()) { if (hasEffect()) {
if (entity.getEntityWorld().isRemote) { if (entity.getEntityWorld().isRemote) {