Allow FakePlayer to report its position (#8963)

This commit is contained in:
Brennan Ward authored and GitHub committed 2022-08-16 14:09:09 -07:00
1 parent 75fcd9448e
commit a51b8d256d
1 file changed
-2
@@ -81,8 +81,6 @@ public class FakePlayer extends ServerPlayer
this.connection = new FakePlayerNetHandler(level.getServer(), this);
}
@Override public Vec3 position() { return new Vec3(0, 0, 0); }
@Override public BlockPos blockPosition() { return BlockPos.ZERO; }
@Override public void displayClientMessage(Component chatComponent, boolean actionBar) { }
@Override public void awardStat(Stat stat, int amount) { }
@Override public boolean isInvulnerableTo(DamageSource source) { return true; }