erogenousbeef-zz / BigReactors

Big Reactors mod for Minecraft
MIT License
153 stars 102 forks source link

fixed possible crash #608

Open AngryCarrot789 opened 3 years ago

AngryCarrot789 commented 3 years ago

i once got a ClassCastException crash caused by casting a TileEntityReactorFuelRod to a TileEntityReactorControlRod. i havent experimented but its pretty obvious it happens if someone places a fuel rod where a control rod is meant to be, and somehow passed the checks saying the block was accepted, because ive placed all sorts of block in those locations by mistake sometimes but it never crashed. so checking if the tileentity is a control rod should hopefully fix that rare crash.

the crash report if you want to read: https://pastebin.com/D81r33Fy