Begin resolving compile errors
This commit is contained in:
parent
8f15eb0dfc
commit
222d78d401
12 changed files with 38 additions and 29 deletions
|
@ -22,7 +22,7 @@ public class MagicalScrubberMenu extends AbstractContainerMenu
|
|||
|
||||
public MagicalScrubberMenu(int id, Inventory inv, FriendlyByteBuf buf)
|
||||
{
|
||||
this(id, inv, inv.player.level.getBlockEntity(buf.readBlockPos()), new SimpleContainerData(1));
|
||||
this(id, inv, inv.player.level().getBlockEntity(buf.readBlockPos()), new SimpleContainerData(1));
|
||||
}
|
||||
|
||||
public MagicalScrubberMenu(int id, Inventory inv, BlockEntity entity, ContainerData data){
|
||||
|
@ -31,7 +31,7 @@ public class MagicalScrubberMenu extends AbstractContainerMenu
|
|||
checkContainerSize(inv, 1);
|
||||
this.entity = (MagicalScrubberBlockEntity)entity;
|
||||
this.data=data;
|
||||
this.level = inv.player.level;
|
||||
this.level = inv.player.level();
|
||||
|
||||
addPlayerInventory(inv);
|
||||
addPlayerHotbar(inv);
|
||||
|
|
Reference in a new issue