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

UnsupportedOperationException when get villager's memory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • git-Spigot-1981d55-3e7b386 (MC: 1.14.4) (Implementing API version 1.14.4-R0.1-SNAPSHOT)
    • Yes

      UnsupportedOperationException when get Long class by LivingEntity.getMemory().
      For example villager.getMemory(MemoryKey.LAST_SLEPT):

      org.bukkit.event.EventException: null
      	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:320) ~[spigot-1.14.4.jar:git-Spigot-1981d55-3e7b386]
      	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[spigot-1.14.4.jar:git-Spigot-1981d55-3e7b386]
      	at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:529) ~[spigot-1.14.4.jar:git-Spigot-1981d55-3e7b386]
      	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:514) ~[spigot-1.14.4.jar:git-Spigot-1981d55-3e7b386]
      	at net.minecraft.server.v1_14_R1.PlayerConnection.a(PlayerConnection.java:1817) ~[spigot-1.14.4.jar:git-Spigot-1981d55-3e7b386]
      	at net.minecraft.server.v1_14_R1.PacketPlayInUseEntity.a(SourceFile:69) ~[spigot-1.14.4.jar:git-Spigot-1981d55-3e7b386]
      	at net.minecraft.server.v1_14_R1.PacketPlayInUseEntity.a(SourceFile:13) ~[spigot-1.14.4.jar:git-Spigot-1981d55-3e7b386]
      	at net.minecraft.server.v1_14_R1.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:19) ~[spigot-1.14.4.jar:git-Spigot-1981d55-3e7b386]
      	at net.minecraft.server.v1_14_R1.TickTask.run(SourceFile:18) [spigot-1.14.4.jar:git-Spigot-1981d55-3e7b386]
      	at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeTask(SourceFile:144) [spigot-1.14.4.jar:git-Spigot-1981d55-3e7b386]
      	at net.minecraft.server.v1_14_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) [spigot-1.14.4.jar:git-Spigot-1981d55-3e7b386]
      	at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeNext(SourceFile:118) [spigot-1.14.4.jar:git-Spigot-1981d55-3e7b386]
      	at net.minecraft.server.v1_14_R1.MinecraftServer.aX(MinecraftServer.java:908) [spigot-1.14.4.jar:git-Spigot-1981d55-3e7b386]
      	at net.minecraft.server.v1_14_R1.MinecraftServer.executeNext(MinecraftServer.java:901) [spigot-1.14.4.jar:git-Spigot-1981d55-3e7b386]
      	at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeAll(SourceFile:103) [spigot-1.14.4.jar:git-Spigot-1981d55-3e7b386]
      	at net.minecraft.server.v1_14_R1.MinecraftServer.sleepForTick(MinecraftServer.java:884) [spigot-1.14.4.jar:git-Spigot-1981d55-3e7b386]
      	at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:818) [spigot-1.14.4.jar:git-Spigot-1981d55-3e7b386]
      	at java.lang.Thread.run(Thread.java:844) [?:?]
      Caused by: java.lang.UnsupportedOperationException: Do not know how to map 1822738
      	at org.bukkit.craftbukkit.v1_14_R1.entity.memory.CraftMemoryMapper.fromNms(CraftMemoryMapper.java:21) ~[spigot-1.14.4.jar:git-Spigot-1981d55-3e7b386]
      	at java.util.Optional.map(Optional.java:254) ~[?:?]

       

            Unassigned Unassigned
            rumickon rumickon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: