Daniel12321 / NPCs

MIT License
18 stars 13 forks source link

"Delay" does not work #21

Closed crymates closed 7 years ago

crymates commented 7 years ago

Using 2.0.0

Delay set to e.g. 60 ticks (3 secs), nothing happens after

crymates commented 7 years ago

If I use "pause" insted of "delay" it works btw ;)

crymates commented 7 years ago

Delay crashes the NPC plugin until restart of the server. Throwing exception

[18:09:27] [Server thread/ERROR] [FML/]: An Entity type org.spongepowered.common.entity.living.human.EntityHuman has thrown an exception trying to write state. It will not persist. Report this to the mod author
org.spongepowered.api.data.DataRegistrationNotFoundException: Could not locate a DataRegistration for class class me.mrdaniel.npcs.data.npc.NPCData
    at org.spongepowered.common.data.SpongeManipulatorRegistry.getRegistrationFor(SpongeManipulatorRegistry.java:149) ~[SpongeManipulatorRegistry.class:1.11.2-2282-6.1.0-BETA-2357]
    at org.spongepowered.common.data.util.DataUtil.getRegistrationFor(DataUtil.java:429) ~[DataUtil.class:1.11.2-2282-6.1.0-BETA-2357]
    at org.spongepowered.common.data.util.DataUtil.getSerializedManipulatorList(DataUtil.java:132) ~[DataUtil.class:1.11.2-2282-6.1.0-BETA-2357]
    at net.minecraft.entity.Entity.writeToNbt(Entity.java:5748) ~[sn.class:?]
    at net.minecraft.entity.EntityLivingBase.writeToNbt(EntityLivingBase.java:3142) ~[sw.class:?]
    at net.minecraft.entity.Entity.handler$onWriteToNBT$zcm000(Entity.java:5652) ~[sn.class:?]
    at net.minecraft.entity.Entity.func_189511_e(Entity.java) ~[sn.class:?]
    at net.minecraft.entity.Entity.func_70039_c(Entity.java:1610) ~[sn.class:?]
    at net.minecraft.world.chunk.storage.AnvilChunkLoader.func_75820_a(AnvilChunkLoader.java:371) [avd.class:?]
    at net.minecraft.world.chunk.storage.AnvilChunkLoader.func_75816_a(AnvilChunkLoader.java:184) [avd.class:?]
    at net.minecraft.world.gen.ChunkProviderServer.func_73242_b(ChunkProviderServer.java:203) [lv.class:?]
    at net.minecraft.world.gen.ChunkProviderServer.func_186027_a(ChunkProviderServer.java:231) [lv.class:?]
    at net.minecraft.world.WorldServer.func_73044_a(WorldServer.java:1015) [lw.class:?]
    at org.spongepowered.common.world.WorldManager.saveWorld(WorldManager.java:523) [WorldManager.class:1.11.2-2282-6.1.0-BETA-2357]
    at net.minecraft.server.MinecraftServer.func_71267_a(MinecraftServer.java:3887) [MinecraftServer.class:?]
    at net.minecraft.server.MinecraftServer.constant$getSaveTickInterval$zhj000(MinecraftServer.java:3843) [MinecraftServer.class:?]
    at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:643) [MinecraftServer.class:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:482) [MinecraftServer.class:?]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
Daniel12321 commented 7 years ago

That last exeption looks more like an error you would get when having the plugin's API7 on a server that is not API7. The delay will be fixed in the next update, which will be in a dat or 2.

Daniel12321 commented 7 years ago

I just released v2.0.1, in which this is fixed.