Sentient Mimic disguised as Iron Ore vanishes on world reload
asanetargoss opened this issue ยท 1 comments
Issue Description:
EntityMimic.deserializeNBT fails for a sentient mimic if the mimic is disguised as vanilla Iron Ore.
See log:
https://paste.ee/p/AgptP
In particular, note the stack trace starting at: "An Entity bloodmagic:mimic(entity.mimic.name) has thrown an exception during loading, its state cannot be restored."
This issue is likely due to a quirk in Minecraft's BlockStateBase.toString(). The serialized block state does not have brackets if there are no properties.
What happens:
Some errors in the console at first, but the sentient mimic block behaves normally as iron ore. Then, upon reloading the save, the mimic is gone.
What you expected to happen:
No errors in console, mimic persists on world reload
Steps to reproduce:
- Mods: BloodMagic-1.12.2-2.4.0-102.jar, Guide-API-1.12-2.1.8-63.jar
- Create world
- Enter creative mode
- Place sentient mimic block
- Right click on sentient mimic block with iron ore. Mimic block now takes on appearance of iron ore.
- Return to survival mode and approach close to mimic without attacking. Observe sentient iron ore mimic becomes aggro'd on you.
- Exit to main menu
- Re-enter same world. Observe the mimic has disappeared.
Affected Versions:
- BloodMagic: 1.12.2-2.4.0-102
- Minecraft: 1.12.2
- Forge: 14.23.5.2808