Handle block entities with nil nbt#1100
Conversation
… assign to nil map panic
|
problem still seems to persist with uninitialized block entities getting ticked panic: runtime error: invalid memory address or nil pointer dereference goroutine 78 [running]: |
|
I'd like to get your schematic that you used then |
|
privately resolved @schphe's issue and is fixed in df-mc/schematic#3 and #1100 |
|
I'm not sure entirely if we should 'support' block entities without NBT. Maybe we should force all of them to have NBT? |
Check if the data in a block entity is nil, so that there won't be an assign to nil map panic
Schematic: https://mcbuild.org/schematics/18554:lighthouse
Test code: