fix after merge

This commit is contained in:
CreepyCre 2021-03-27 13:24:09 +01:00
parent 68567d6479
commit 36fb8f3641

View file

@ -134,7 +134,7 @@ public class ServerPacketHandler implements ServerPacketListener {
@Override
public void onAttackBlock(HitBlockWithItemC2SPacket packet) {
server.execute(() -> {
getServer().execute(() -> {
Item item = getPlayer().getStackInHand(packet.getHand()).getItem();
if (item instanceof ModItem) {
((ModItem) item).onAttackBlock(getPlayer().world, getPlayer(), packet.getHand(), packet.getPos(), packet.getDirection());