Access block entity type of state by getting the block first

This commit is contained in:
chris 2024-06-19 01:52:32 +02:00 committed by GitHub
parent f0d330618a
commit 85f9346152
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -436,7 +436,7 @@ public final class BlockRegistryPopulator {
builder.requiresCorrectToolForDrops();
}
if (javaBlockState.hasBlockEntity()) {
builder.setBlockEntity(javaBlockState.blockEntityType());
builder.setBlockEntity(javaBlockState.block().blockEntityType());
}
String cleanJavaIdentifier = BlockUtils.getCleanIdentifier(javaBlockState.identifier());
String pickItem = javaBlockState.pickItem();