change storage format to short identifiers, fix bush update causing potential stack overflow on drop check

This commit is contained in:
Sen 2025-07-28 18:53:06 +02:00
parent b9753203ec
commit 7fb0edff33
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
3 changed files with 56 additions and 56 deletions

View file

@ -60,7 +60,7 @@ public class BlockBush extends Block
if (!this.canBlockStay(worldIn, pos, state))
{
this.drop(worldIn, pos, state, 0);
worldIn.setState(pos, Blocks.air.getState(), 3);
worldIn.setState(pos, Blocks.air.getState(), 2); // avoid recursion
}
}