mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Access block entity type of state by getting the block first
This commit is contained in:
parent
f0d330618a
commit
85f9346152
1 changed files with 1 additions and 1 deletions
|
|
@ -436,7 +436,7 @@ public final class BlockRegistryPopulator {
|
||||||
builder.requiresCorrectToolForDrops();
|
builder.requiresCorrectToolForDrops();
|
||||||
}
|
}
|
||||||
if (javaBlockState.hasBlockEntity()) {
|
if (javaBlockState.hasBlockEntity()) {
|
||||||
builder.setBlockEntity(javaBlockState.blockEntityType());
|
builder.setBlockEntity(javaBlockState.block().blockEntityType());
|
||||||
}
|
}
|
||||||
String cleanJavaIdentifier = BlockUtils.getCleanIdentifier(javaBlockState.identifier());
|
String cleanJavaIdentifier = BlockUtils.getCleanIdentifier(javaBlockState.identifier());
|
||||||
String pickItem = javaBlockState.pickItem();
|
String pickItem = javaBlockState.pickItem();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue