mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Fix mistake on Enderman carried block updater
This commit is contained in:
parent
2f56f02477
commit
b35667d187
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue