Closed Jakllp closed 3 years ago
no errors on my test on game or console [08:17:16] [Server thread/INFO]: comonier issued server command: /pcst [08:17:23] [Server thread/INFO]: comonier issued server command: /psw [08:17:36] [Server thread/INFO]: comonier issued server command: /petrelease [08:17:39] [Server thread/INFO]: comonier issued server command: /petrelease Vaca [08:18:04] [Server thread/INFO]: comonier issued server command: /petadmin give comonier [08:18:18] [Server thread/INFO]: comonier issued server command: /petadmin create comonier Villager [08:18:22] [Server thread/INFO]: comonier issued server command: /petrelease [08:18:24] [Server thread/INFO]: comonier issued server command: /petrelease Aldeão [08:19:02] [Server thread/INFO]: comonier issued server command: /mypet
[08:23:51 INFO]: Checking version, please wait... [08:23:51 INFO]: This server is running Paper version git-Paper-135 (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT) (Git: 321dd1d) You are 114 version(s) behind
[21:07:10 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'petrelease' in plugin MyPet v3.12
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[patched_1.17.1.jar:git-Airplane-73]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.17.1.jar:git-Airplane-73]
at org.bukkit.craftbukkit.v1_17_R1.CraftServer.dispatchCommand(CraftServer.java:838) ~[patched_1.17.1.jar:git-Airplane-73]
at net.minecraft.server.network.PlayerConnection.handleCommand(PlayerConnection.java:2248) ~[patched_1.17.1.jar:git-Airplane-73]
at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:2059) ~[patched_1.17.1.jar:git-Airplane-73]
at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:2040) ~[patched_1.17.1.jar:git-Airplane-73]
at net.minecraft.network.protocol.game.PacketPlayInChat.a(PacketPlayInChat.java:46) ~[patched_1.17.1.jar:git-Airplane-73]
at net.minecraft.network.protocol.game.PacketPlayInChat.a(PacketPlayInChat.java:6) ~[patched_1.17.1.jar:git-Airplane-73]
at net.minecraft.network.protocol.PlayerConnectionUtils.lambda$ensureRunningOnSameThread$1(PlayerConnectionUtils.java:56) ~[patched_1.17.1.jar:git-Airplane-73]
at net.minecraft.server.TickTask.run(TickTask.java:18) ~[patched_1.17.1.jar:git-Airplane-73]
at net.minecraft.util.thread.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:149) ~[patched_1.17.1.jar:git-Airplane-73]
at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.executeTask(IAsyncTaskHandlerReentrant.java:23) ~[patched_1.17.1.jar:git-Airplane-73]
at net.minecraft.server.MinecraftServer.executeTask(MinecraftServer.java:1421) ~[patched_1.17.1.jar:git-Airplane-73]
at net.minecraft.server.MinecraftServer.executeTask(MinecraftServer.java:192) ~[patched_1.17.1.jar:git-Airplane-73]
at net.minecraft.util.thread.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:122) ~[patched_1.17.1.jar:git-Airplane-73]
at net.minecraft.server.MinecraftServer.bf(MinecraftServer.java:1399) ~[patched_1.17.1.jar:git-Airplane-73]
at net.minecraft.server.MinecraftServer.executeNext(MinecraftServer.java:1392) ~[patched_1.17.1.jar:git-Airplane-73]
at net.minecraft.util.thread.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:132) ~[patched_1.17.1.jar:git-Airplane-73]
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1470) ~[patched_1.17.1.jar:git-Airplane-73]
at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1275) ~[patched_1.17.1.jar:git-Airplane-73]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[patched_1.17.1.jar:git-Airplane-73]
at java.lang.Thread.run(Thread.java:831) [?:?]
Caused by: java.lang.NoSuchMethodError: 'net.minecraft.world.InventorySubcontainer net.minecraft.world.entity.npc.EntityVillager.fD()'
at de.Keyle.MyPet.compat.v1_17_R1.services.EntityConverterService.convertEntity(EntityConverterService.java:271) ~[MyPet-3.12-RC3.jar:?]
at de.Keyle.MyPet.commands.CommandRelease.lambda$onCommand$0(CommandRelease.java:95) ~[MyPet-3.12-RC3.jar:?]
at java.util.Optional.ifPresent(Optional.java:178) ~[?:?]
at de.Keyle.MyPet.commands.CommandRelease.onCommand(CommandRelease.java:95) ~[MyPet-3.12-RC3.jar:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[patched_1.17.1.jar:git-Airplane-73]
... 21 more
[21:08:07 INFO]: This server is running Airplane version git-Airplane-73 (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT) (Git: a8f82ed on HEAD) Unknown version Previous version: git-Airplane-"ec7d3d0" (MC: 1.17.1)
Seems to be a problem when the villager has an inventory/other attributes. Gonna look into it beginning of next week
I think I found the issue? 'entityVillager.getInventory().addItem(itemstack);' looks right -> but it gets remapped to 'entityVillager.fD().a(itemstack) ' (seemingly).
This is wrong as it should be remapped to 'entityVillager.fG().a(itemstack)'
maybe need update mapping from 1.17 to 1.17.1
Nope already using 1.17.1 (checked that immediately) - it's just wrong I guess. Was technically able to get it over to bukkit api - testing now