Merge pull request #6460 from IThundxr/mc1.18/controller-lectern-fix

Fix NPE caused by empty lectern controller in a debug world
This commit is contained in:
simibubi 2024-07-17 11:06:40 +02:00 committed by GitHub
commit 50db9bc826
Failed to generate hash of commit

View file

@ -28,7 +28,7 @@ import net.minecraftforge.fml.DistExecutor;
public class LecternControllerBlockEntity extends SmartBlockEntity {
private ItemStack controller;
private ItemStack controller = ItemStack.EMPTY;
private UUID user;
private UUID prevUser; // used only on client
private boolean deactivatedThisTick; // used only on server