Skip to main content
7 events
when toggle format what by license comment
Jul 1, 2013 at 16:37 comment added Pip @AndrewGraber look at the above comments, they're important :P
Jul 1, 2013 at 16:15 history edited WildWeazel CC BY-SA 3.0
fixed unsafe cast
Jul 1, 2013 at 16:13 comment added WildWeazel @KevinReid derp, you're right. I've been away from Java too long.
Jun 29, 2013 at 3:00 comment added Kevin Reid This code and explanation of casting is incorrect. If the object is not an EntityPlayer then the cast will throw a ClassCastException, crashing the game. Instead, use instanceof to check before casting: if (par7EntityLiving instanceof Player) { ((EntityPlayer)player).addExperienceLevel(-1); }
Jun 28, 2013 at 18:52 vote accept Andrew Graber
Jun 28, 2013 at 16:52 history edited WildWeazel CC BY-SA 3.0
derp, typo
Jun 28, 2013 at 15:31 history answered WildWeazel CC BY-SA 3.0