Skip to content

Commit

Permalink
Fix IronGolem cracked texture and sound (GeyserMC#3103)
Browse files Browse the repository at this point in the history
* Update mappings submodule

* Set IronGolem maxHealth to 100 by default

Fixes cracked texture on vanilla servers

* Add detail to comment
  • Loading branch information
AJ-Ferguson committed Jun 30, 2022
1 parent 13e8b59 commit f2f894b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ public IronGolemEntity(GeyserSession session, int entityId, long geyserId, UUID
setFlag(EntityFlag.BRIBED, true);
// Required, or else the overlay is black
dirtyMetadata.put(EntityData.COLOR_2, (byte) 0);
// Default max health. Ensures correct cracked texture is used
// Bug reproducible in 1.19.0 JE vanilla/fabric when spawning a new iron golem
maxHealth = 100f;
}

@Nonnull
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/resources/mappings
Submodule mappings updated 1 files
+3 −3 sounds.json

0 comments on commit f2f894b

Please sign in to comment.