mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 23:28:35 +01:00
Fix crash with EntityLivingEvent (for some reason)
This commit is contained in:
parent
76d00af8a3
commit
1590026ed3
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ public class EntityLivingEvent{
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void livingUpdateEvent(LivingUpdateEvent event){
|
public void livingUpdateEvent(LivingUpdateEvent event){
|
||||||
//Ocelots dropping Hair Balls
|
//Ocelots dropping Hair Balls
|
||||||
if(!event.entityLiving.worldObj.isRemote){
|
if(event.entityLiving != null && event.entityLiving.worldObj != null && !event.entityLiving.worldObj.isRemote){
|
||||||
if(event.entityLiving instanceof EntityOcelot){
|
if(event.entityLiving instanceof EntityOcelot){
|
||||||
EntityOcelot theOcelot = (EntityOcelot)event.entityLiving;
|
EntityOcelot theOcelot = (EntityOcelot)event.entityLiving;
|
||||||
if(ConfigBoolValues.DO_CAT_DROPS.isEnabled() && theOcelot.isTamed()){
|
if(ConfigBoolValues.DO_CAT_DROPS.isEnabled() && theOcelot.isTamed()){
|
||||||
|
|
Loading…
Reference in a new issue