crash on talking too fast

Create issue
Issue #35 resolved
Fabian Maurer created an issue

I'm not quite sure how excatly to get, but I got it a few times while testing my script. Guess I just talked to fast.. Using 0.3.1 alpha.

java.lang.IllegalStateException: DarkShadow44 tried to start interaction with Creeper twice
    at com.google.common.base.Preconditions.checkState(Preconditions.java:176)
    at mobtalker2.server.entity.BasicInteractionAdapter.canStartInteractionWith(BasicInteractionAdapter.java:185)
    at mobtalker2.server.registry.InteractionRegistry.startInteraction(InteractionRegistry.java:268)
    at mobtalker2.server.registry.InteractionRegistry.onEntityInteractEvent(InteractionRegistry.java:401)
    at net.minecraftforge.event.ASMEventHandler_5_InteractionRegistry_onEntityInteractEvent_EntityInteractEvent.invoke(.dynamic)
    at net.minecraftforge.event.ASMEventHandler.invoke(ASMEventHandler.java:39)
    at net.minecraftforge.event.EventBus.post(EventBus.java:108)
    at net.minecraft.entity.player.EntityPlayer.func_70998_m(EntityPlayer.java:1244)
    at net.minecraft.network.NetServerHandler.func_72507_a(NetServerHandler.java:834)
    at net.minecraft.network.packet.Packet7UseEntity.func_73279_a(SourceFile:36)
    at net.minecraft.network.MemoryConnection.func_74428_b(MemoryConnection.java:89)
    at net.minecraft.network.NetServerHandler.func_72570_d(NetServerHandler.java:141)
    at net.minecraft.network.NetworkListenThread.func_71747_b(NetworkListenThread.java:54)
    at net.minecraft.server.integrated.IntegratedServerListenThread.func_71747_b(IntegratedServerListenThread.java:109)
    at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:689)
    at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:585)
    at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:129)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:482)
    at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:582)

Comments (4)

  1. Chimaine
    • changed status to open

    This happens when right click on the entity you want to talk with too fast. You must have quite a fast finger ;) But yeah, I'll see what I can do about that.

  2. Chimaine

    Fix too fast right clicking when trying to start the first interaction of this Minecraft instance to cause a crash because of a duplicate interaction request. Fixes #35

    → <<cset d32ec6e66dcb>>

  3. Fabian Maurer reporter

    Well, I was not really fast, currently converting my script for the alpha, it has 2 seconds loading time and I'm a bit impatient... =D

  4. Chimaine

    Ah okay. To be honest I never tested with larger scripts.

    Mh. May even precompile scripts. Will test a few more things.

  5. Log in to comment