Charge Traps cause crashes whenever entities that aren't living are stepping on it
Closed this issue ยท 2 comments
Hi,
While playing a modpack with Wither's Weapons, trial chambers with Charge Trap blocks cause ticking exception crashes whenever non-living entities (e.g. items) "step" on the charge trap - causing a ticking exception because it tries to cast it into a living entity
-- Ticking Exception #4 - (Entity: Random Artifact -Common-) --
Details:
Message: class net.minecraft.world.entity.item.ItemEntity cannot be cast to class net.minecraft.world.entity.LivingEntity (net.minecraft.world.entity.item.ItemEntity and net.minecraft.world.entity.LivingEntity are in module [email protected] of loader 'TRANSFORMER' @1edf52e6)
Entity Type: minecraft:item (net.minecraft.world.entity.item.ItemEntity)
Entity ID: 51912
Entity Name: Air
Entity's Exact location: -1791.65, 180.00, -5239.37
Entity's Block location: World: (-1792,180,-5240), Section: (at 0,4,8 in -112,11,-328; chunk contains blocks -1792,-64,-5248 to -1777,319,-5233), Region: (-4,-11; contains chunks -128,-352 to -97,-321, blocks -2048,-64,-5632 to -1537,319,-5121)
Entity's Momentum: 0.02, 0.00, -0.07
Entity's Passengers: []
Entity's Vehicle: null
Stacktrace:
at TRANSFORMER/[email protected]/com.wither.withersweapons.common.blocks.ChargeTrapBlock.stepOn(ChargeTrapBlock.java:125) ~[withersweapons-2.3.7-NEO1.21.1.jar%23942!/:?] {re:classloading}
The modpack runs Withers Weapons version 2.3.7, newer versions don't mention any sort of fixes, so I'm not sure whether this has been resolved already and requires a quick update
Oh this bug I had the same thing with GeoSmelt you'd think I would have learned lol. Charge Traps are poorly coded but I will have it fixed soon.