ThisRocks! 1.5.1 - Fix crash when picking Starfish

This commit is contained in:
Motschen
2021-10-05 17:14:08 +02:00
parent f09b349756
commit ea056019ec
3 changed files with 8 additions and 8 deletions

View File

@@ -61,7 +61,7 @@ public class Starfish extends Block implements Waterloggable {
@Override
public ItemStack getPickStack(BlockView world, BlockPos pos, BlockState state) {
ItemStack stack = new ItemStack(this);
stack.getNbt().putString("variation", state.get(STARFISH_VARIATION).asString());
stack.getOrCreateNbt().putString("variation", state.get(STARFISH_VARIATION).asString());
LOGGER.info(state.get(STARFISH_VARIATION).asString());
return stack;
}