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
No known key found for this signature in database
GPG key ID: 710D09287708C823

View file

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