fix after merge
This commit is contained in:
parent
68567d6479
commit
36fb8f3641
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue