Doggy Talents

Doggy Talents

27M Downloads

Typecast exception?!

Tokeli opened this issue ยท 1 comments

commented

Environment And Mod Information:

MC 1.12.2
Forge 14.23.1.2584
Doggy Talents 1.12.1-1.14.2.314
Java 8.131

Logs


Time: 1/14/18 6:11 AM
Description: Ticking entity

java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
	at doggytalents.base.c.DataTrackerWrapper.getTalentString(DataTrackerWrapper.java:222)
	at doggytalents.entity.TalentUtil.getSaveString(TalentUtil.java:36)
	at doggytalents.entity.TalentUtil.getLevel(TalentUtil.java:45)
	at doggytalents.entity.TalentUtil.getLevel(TalentUtil.java:41)
	at doggytalents.talent.GuardDog.onRegenerationTick(GuardDog.java:50)
	at doggytalents.entity.TalentHelper.onRegenerationTick(TalentHelper.java:59)
	at doggytalents.entity.EntityDog.func_70636_d(EntityDog.java:240)
	at net.minecraft.entity.EntityLivingBase.func_70071_h_(EntityLivingBase.java:2170)
	at net.minecraft.entity.EntityLiving.func_70071_h_(EntityLiving.java:377)
	at doggytalents.entity.EntityAbstractDog.func_70071_h_(EntityAbstractDog.java:75)
	at doggytalents.entity.EntityDog.func_70071_h_(EntityDog.java:308)
	at net.minecraft.world.World.func_72866_a(World.java:1990)
	at net.minecraft.world.World.func_72870_g(World.java:1952)
	at net.minecraft.world.World.func_72939_s(World.java:1756)
	at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1845)
	at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1096)
	at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:397)
	at net.minecraft.client.main.Main.main(SourceFile:123)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)


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

-- Head --
Thread: Client thread
Stacktrace:
	at doggytalents.base.c.DataTrackerWrapper.getTalentString(DataTrackerWrapper.java:222)
	at doggytalents.entity.TalentUtil.getSaveString(TalentUtil.java:36)
	at doggytalents.entity.TalentUtil.getLevel(TalentUtil.java:45)
	at doggytalents.entity.TalentUtil.getLevel(TalentUtil.java:41)
	at doggytalents.talent.GuardDog.onRegenerationTick(GuardDog.java:50)
	at doggytalents.entity.TalentHelper.onRegenerationTick(TalentHelper.java:59)
	at doggytalents.entity.EntityDog.func_70636_d(EntityDog.java:240)
	at net.minecraft.entity.EntityLivingBase.func_70071_h_(EntityLivingBase.java:2170)
	at net.minecraft.entity.EntityLiving.func_70071_h_(EntityLiving.java:377)
	at doggytalents.entity.EntityAbstractDog.func_70071_h_(EntityAbstractDog.java:75)
	at doggytalents.entity.EntityDog.func_70071_h_(EntityDog.java:308)
	at net.minecraft.world.World.func_72866_a(World.java:1990)
	at net.minecraft.world.World.func_72870_g(World.java:1952)

-- Entity being ticked --
Details:
	Entity Type: doggytalents:dog (doggytalents.base.f.EntityDogWrapper)
	Entity ID: 189
	Entity Name: Dog
	Entity's Exact location: -171.56, 77.00, 231.30
	Entity's Block location: World: (-172,77,231), Chunk: (at 4,4,7 in -11,14; contains blocks -176,0,224 to -161,255,239), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
	Entity's Momentum: 0.00, -0.08, 0.00
	Entity's Passengers: []
	Entity's Vehicle: ~~ERROR~~ NullPointerException: null
Stacktrace:
	at net.minecraft.world.World.func_72939_s(World.java:1756)

Issue Description:

Spawned dog, left dog to sit near spawn. Left view distance from dog and on return, crashed.

Steps to reproduce:

Don't have a clue!

commented

Don't use the latest versions of Forge! They are prone to have bugs on them! I would stick to Forge 14.23.1.2555 (the recommended release). I had another bug crash with a similar error when I used the Forge latest version (14.23.1.2589)