1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-27 02:39:15 +00:00

Fix mistake on Enderman carried block updater

This commit is contained in:
Konicai
2022-11-22 19:02:01 -05:00
parent 2f56f02477
commit b35667d187

View File

@@ -48,7 +48,7 @@ public class EndermanEntity extends MonsterEntity {
public void setCarriedBlock(EntityMetadata<OptionalInt, OptionalIntMetadataType> entityMetadata) {
int bedrockBlockId;
if (entityMetadata.getValue().isPresent()) {
bedrockBlockId = entityMetadata.getValue().getAsInt();
bedrockBlockId = session.getBlockMappings().getBedrockBlockId(entityMetadata.getValue().getAsInt());
} else {
bedrockBlockId = session.getBlockMappings().getBedrockAirId();
}