- changed title to Crash in onEntityInteractEvent with LittleMaids
Crash in onEntityInteractEvent with LittleMaids
(Copied from MobTalker 2 forums)
Apparently, you forgot to check if the Entity doing the interaction with another mob (in our case, a sheep) is actually a Player. Because, if you use LittleMaidMobX and give a LittleMaid there shears, the maid tries to shear the sheep. Since the LittleMaid cannot be casted to EntityPlayerMP, Minecraft crashes and gives the following report: http://pastebin.com/k50BaHta
Should be a quick fix, I guess.
Comments (5)
-
reporter -
- changed status to open
What type does EntityLittleMaidAvatar extends then? I guess just EntityPlayer?
-
reporter Yeah, Darkie just decompiled the code and he said it just extends EntityPlayer. For whatever reason.
-
I guess so they can act as fake players and use (right click) items. Wouldn't be possible otherwise. Yeah should be easily fixed.
-
- changed status to resolved
Guard against fake player in EntityInteractEvent handling. Fixes
#56→ <<cset 8cb15d9877e8>>
- Log in to comment