Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-3020

Exception when set item in main hand to AIR on PlayerInteractEvent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • None

      Error executing task
      java.util.concurrent.ExecutionException: java.lang.AssertionError: TRAP
      at java.util.concurrent.FutureTask.report(Unknown Source) ~[?:1.8.0_111]
      
      at java.util.concurrent.FutureTask.get(Unknown Source) ~[?:1.8.0_111]
      at net.minecraft.server.v1_11_R1.SystemUtils.a(SourceFile:47) [server.ja
      r:git-Spigot-7d78b81-f709362]
      at net.minecraft.server.v1_11_R1.MinecraftServer.D(MinecraftServer.java:
      739) [server.jar:git-Spigot-7d78b81-f709362]
      at net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:
      399) [server.jar:git-Spigot-7d78b81-f709362]
      at net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:
      675) [server.jar:git-Spigot-7d78b81-f709362]
      at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.jav
      a:574) [server.jar:git-Spigot-7d78b81-f709362]
      at java.lang.Thread.run(Unknown Source) [?:1.8.0_111]
      Caused by: java.lang.AssertionError: TRAP
      at net.minecraft.server.v1_11_R1.ItemStack.F(ItemStack.java:94) ~[server
      .jar:git-Spigot-7d78b81-f709362]
      at net.minecraft.server.v1_11_R1.ItemStack.setCount(ItemStack.java:822)
      ~[server.jar:git-Spigot-7d78b81-f709362]
      at net.minecraft.server.v1_11_R1.PlayerInteractManager.a(PlayerInteractM
      anager.java:403) ~[server.jar:git-Spigot-7d78b81-f709362]
      at net.minecraft.server.v1_11_R1.PlayerConnection.a(PlayerConnection.jav
      a:957) ~[server.jar:git-Spigot-7d78b81-f709362]
      at net.minecraft.server.v1_11_R1.PacketPlayInBlockPlace.a(PacketPlayInBl
      ockPlace.java:26) ~[server.jar:git-Spigot-7d78b81-f709362]
      at net.minecraft.server.v1_11_R1.PacketPlayInBlockPlace.a(PacketPlayInBl
      ockPlace.java:1) ~[server.jar:git-Spigot-7d78b81-f709362]
      at net.minecraft.server.v1_11_R1.PlayerConnectionUtils$1.run(SourceFile:
      13) ~[server.jar:git-Spigot-7d78b81-f709362]
      at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~
      [?:1.8.0_111]
      at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:1.8.0_111]
      at net.minecraft.server.v1_11_R1.SystemUtils.a(SourceFile:46) ~[server.j
      ar:git-Spigot-7d78b81-f709362]
      ... 5 more
      

      This exception throws when I'm setting to AIR item in player's hand on PlayerInteractEvent with right click.

            Unassigned Unassigned
            Den_Abr Denis Abramov
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: