ShyNieke / StatuesMod

A little decorative and functional mod
https://www.curseforge.com/minecraft/mc-mods/statues
Other
8 stars 5 forks source link

[Bug]: Statue in force loaded area causes a crash when attempting to spawn an entity #82

Closed epicgamerjamer closed 1 year ago

epicgamerjamer commented 1 year ago

General Info

Forge version

43.2.4

Minecraft version

1.19.2

Mod version

0.3.2.1

Java version

18.0.2.1

Issue Description

Pretty much as the title says. I left a statue in the overworld in force-loaded chunks (FTB chunks) which had the mob spawner upgrade. When it tried to spawn an enderman, the game crashed.

Additional Information

https://pastebin.com/swm3mZAd

Mrbysco commented 1 year ago

Duplicate of #81 and fixed in https://github.com/ShyNieke/StatuesMod/commit/5a2321ca8e98301fb67612b81e5064ade45c9899

It's related to the mob killer upgrade hurting the mob and the mob trying to check if it can attack the attacker, which is trying to check the scoreboard but it can't due to how the fake player is setup. I've fixed this for future versions