Open Nat392 opened 1 year ago
you have to create a new id everytime you make a new block, by every new instance just add $id = BlockTypeIds::newId();
Otherwise you will register the blocks with the same $Id variable, do you understand?
if not here is example
$id = 1;
registerBlock($id (which = 1))
registering a new block with same $id variable
registerBlock($id (which = 1))
then you get that error
so just create new $Id variable above the instance of registering the block like so
$id = 1;
registerBlock($id (which = 1))
$id = 2;
registerBlock($id (which = 2))
That's what I do, but it doesn't change anything.
$id is only for the first block, after $id2, etc.
same problem as mine
Hello, I've had this crash for a few days and I can't find the cause. It happens about 1 out of every 3 reboots, with the same ID and block.
And apparently, I'm not the only one this happens to, according to a reply I got on the discord.
Thanks!