I was trying to create a custom container. Although there was a NullPointerException, I was still able to play the game and have access to the container and containerScreen, no crashes.
Specifically, IDE is pointing to the PacketBuffer data in the ContainerRegistry where it says IForgeContainerType.create(((windowId, inv, data) -> { ... data.readBlockPos(); // Error: data is null??
Anyone know what is the cause of this and how can I fix this?
Forge Version: forge:1.16.5-36.2.20
Here is the Error:
ModContainerRegistry:
The use method in ModBlock that opens the gui:
The Container itself: