Solar Craft

Solar Craft

290k Downloads

Crash when a mob uses the Shield of Solar God

noncom opened this issue ยท 1 comments

commented

Hey, there's a crash.
Playing a modpack where mobs can carry and use items.
So one of them apparently got the Shield of Solar God and tried using it.
As I see the code doesn't anticipate that the user could be not a player: https://github.com/FINDERFEED/SolarCraftRepository/blob/master/src/main/java/com/finderfeed/solarcraft/content/items/ShieldOfSolarGod.java#L118
But hey, it's a LivingEntity originally, so why not :)

crash-2023-02-12_00.22.29-server.txt

commented

Oups i was not expecting that some other entity than the player will wield my shield xD.