Quarris / RebirthOfTheMobs

2 stars 1 forks source link

NullPointerException for zotzpyre #15

Open thos-grol opened 3 years ago

thos-grol commented 3 years ago
java.lang.NullPointerException
    at quarris.rotm.event.VehicleEventHandler.cancelMount(VehicleEventHandler.java:27)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_72_VehicleEventHandler_cancelMount_EntityMountEvent.invoke(.dynamic)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182)
    at net.minecraftforge.event.ForgeEventFactory.canMountEntity(ForgeEventFactory.java:531)
    at net.minecraft.entity.Entity.startRiding(Entity.java:2063)
    at net.minecraft.entity.EntityLiving.startRiding(EntityLiving.java:1506)
    at its_meow.betteranimalsplus.common.entity.EntityZotzpyre.grabTarget(EntityZotzpyre.java:535)
    at its_meow.betteranimalsplus.common.entity.EntityZotzpyre$AIMeleeAttack.checkAndPerformAttack(EntityZotzpyre.java:870)
    at its_meow.betteranimalsplus.common.entity.ai.PublicEntityAIAttack.updateTask(PublicEntityAIAttack.java:144)
    at net.minecraft.entity.ai.EntityAITasks.onUpdateTasks(SourceFile:129)
    at net.minecraft.entity.EntityLiving.updateEntityActionState(EntityLiving.java:888)
    at net.minecraft.entity.EntityLivingBase.onLivingUpdate(EntityLivingBase.java:2359)
    at net.minecraft.entity.EntityLiving.onLivingUpdate(EntityLiving.java:678)
    at net.minecraft.entity.monster.EntityMob.onLivingUpdate(EntityMob.java:45)
    at its_meow.betteranimalsplus.common.entity.EntityZotzpyre.onLivingUpdate(EntityZotzpyre.java:267)
    at net.minecraft.entity.EntityLivingBase.onUpdate(EntityLivingBase.java:2179)
    at net.minecraft.entity.EntityLiving.onUpdate(EntityLiving.java:377)
    at net.minecraft.entity.monster.EntityMob.onUpdate(EntityMob.java:50)
    at its_meow.betteranimalsplus.common.entity.EntityZotzpyre.onUpdate(EntityZotzpyre.java:149)
    at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:1996)
    at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:832)
    at net.minecraft.world.World.updateEntity(World.java:1958)
    at net.minecraft.world.World.redirect$zch000$updateEntity(World.java:4623)
    at net.minecraft.world.World.updateEntities(World.java:1762)
    at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:613)
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:767)
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:668)
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:279)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
    at java.lang.Thread.run(Unknown Source)

A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Entity being ticked --
  Entity Type: betteranimalsplus:zotzpyre (its_meow.betteranimalsplus.common.entity.EntityZotzpyre)
  Entity ID: 1793
  Entity Name: Zotzpyre
  Entity's Exact location: 46.83, 35.56, -80.54
  Entity's Block location: World: (46,35,-81), Chunk: (at 14,2,15 in 2,-6; contains blocks 32,0,-96 to 47,255,-81), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)
  Entity's Momentum: 0.03, 0.11, 0.24
  Entity's Passengers: []
  Entity's Vehicle: ~~ERROR~~ NullPointerException: null
  Entity NBT: {SurgeAABB:[46.38484467554201d,35.56000000405312d,-80.99114389045143d,47.284844651700155d,36.459999980211265d,-80.09114391429328d],Pos:[46.834844663621084d,35.56000000405312d,-80.54114390237235d],RelativeAABB:[-0.44999998807907104d,0.0d,-0.44999998807907104d,0.44999998807907104d,0.8999999761581421d,0.44999998807907104d],Motion:[0.03159918011997781d,0.10800000586509712d,0.24108180470687665d],Rotation:[17.82843f,-33.722305f],FallDistance:0.0f,Fire:-1s,Air:300s,OnGround:0b,Dimension:0,Invulnerable:0b,PortalCooldown:0,UUIDMost:-270350730801754204L,UUIDLeast:-5610443855734767022L,UpdateBlocked:0b,ForgeData:{"Potion Core - Health Fix":20.0f,"Potion Core - Jump Boost Updated":1b,"roughmobsrevamped:attributesApplied":1b,"roughmobsrevamped:featuresApplied":1b,HungerOverhaulCheck:8},ForgeCaps:{"llibrary:extendedentitydatacapability":{"Ice and Fire - Player Property Tracker":{DismountedDragon:0b,GauntletDamage:0,DreadPortalX:0,DreadPortalY:0,DreadPortalZ:0},"Ice And Fire - Frozen Property Tracker":{IsFrozen:0b,TicksUntilUnfrozen:0},"Ice And Fire - Siren Property Tracker":{CharmedBySiren:0b,SirenID:0},"Ice And Fire - Chain Property Tracker":{ConnectedEntities:[]},"Ice And Fire - Stone Property Tracker":{TurnedToStone:0b,StoneBreakLvl:0}},"dsurround:data":{a:0b,f:0b},"betterhurttimer:hurt":{ticksToArmorDamage:0,ticksToShieldDamage:0},"epicsiegemod:modified_handler":{modified:0b,data:{"epicsiegemod:general_spawn":{hasModifiers:1b,checkMobBomb:1b}}}},Health:20.0f,HurtTime:0s,HurtByTimestamp:0,DeathTime:0s,AbsorptionAmount:0.0f,Attributes:[{Name:"potioncore.projectileDamage",Base:1.0d},{Name:"potioncore.magicDamage",Base:1.0d},{Name:"potioncore.jumpHeight",Base:1.0d},{Name:"potioncore.damageResistance",Base:1.0d},{Name:"potioncore.magicShielding",Base:0.0d},{Name:"tc.mobmod",Base:-2.0d,Modifiers:[{Name:"normal",Amount:1.0d,Operation:0,UUIDMost:2189974539282499591L,UUIDLeast:-6477178668949725305L}]},{Name:"tc.mobmodtaint",Base:0.0d},{Name:"generic.maxHealth",Base:20.0d},{Name:"generic.knockbackResistance",Base:0.0d},{Name:"generic.movementSpeed",Base:0.35d},{Name:"generic.armor",Base:0.0d},{Name:"generic.armorToughness",Base:0.0d},{Name:"forge.swimSpeed",Base:1.0d},{Name:"generic.followRange",Base:64.0d,Modifiers:[{Name:"Random spawn bonus",Amount:-0.07775525095750158d,Operation:1,UUIDMost:5273010385806771119L,UUIDLeast:-6334894796802746323L}]},{Name:"generic.attackDamage",Base:3.0d}],FallFlying:0b,CanPickUpLoot:0b,PersistenceRequired:0b,ArmorItems:[{},{},{},{}],HandItems:[{},{}],ArmorDropChances:[0.085f,0.085f,0.085f,0.085f],HandDropChances:[0.085f,0.085f],Leashed:0b,LeftHanded:0b,TypeNumber:4}