problem with API Dummy class
When I interact either by right or left clicking on an entity created with dummy I get this error and the server proceeds to close.
Code:
ModelBlueprint blueprint = ModelEngineAPI.getBlueprint(modelId);
ActiveModel activeModel = ModelEngineAPI.createActiveModel(blueprint);
Dummy<?> dummy = new Dummy<>();
ModeledEntity modeledEntity = ModelEngineAPI.createModeledEntity(dummy);
dummy.setDetectingPlayers(false);
dummy.syncLocation(location);
Exception:
[01:14:43] [Server thread/ERROR]: Encountered an unexpected exception
java.lang.NoSuchMethodError: 'boolean net.minecraft.network.protocol.game.PacketPlayInUseEntity.isAttack()'
at com.ticxo.modelengine.v1_20_R1.network.PatchedServerGamePacketListener.callPlayerUseUnknownEntityEvent(PatchedServerGamePacketListener.java:287) ~[ModelEngine-4.0.2F.jar:?]
at com.ticxo.modelengine.v1_20_R1.network.PatchedServerGamePacketListener$2.a(PatchedServerGamePacketListener.java:113) ~[ModelEngine-4.0.2F.jar:?]
at net.minecraft.network.protocol.game.ServerboundInteractPacket$1.dispatch(ServerboundInteractPacket.java:24) ~[?:?]
at net.minecraft.network.protocol.game.ServerboundInteractPacket.dispatch(ServerboundInteractPacket.java:80) ~[?:?]
at com.ticxo.modelengine.v1_20_R1.network.ServerboundInteractPacketWrapper.a(ServerboundInteractPacketWrapper.java:53) ~[ModelEngine-4.0.2F.jar:?]
at com.ticxo.modelengine.v1_20_R1.network.PatchedServerGamePacketListener.handleInteract(PatchedServerGamePacketListener.java:100) ~[ModelEngine-4.0.2F.jar:?]
at com.ticxo.modelengine.v1_20_R1.network.ServerboundInteractPacketWrapper.a(ServerboundInteractPacketWrapper.java:32) ~[ModelEngine-4.0.2F.jar:?]
at com.ticxo.modelengine.v1_20_R1.network.ServerboundInteractPacketWrapper.a(ServerboundInteractPacketWrapper.java:11) ~[ModelEngine-4.0.2F.jar:?]
at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:51) ~[?:?]
at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.20.1.jar:git-Paper-62]
at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?]
at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1339) ~[paper-1.20.1.jar:git-Paper-62]
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:197) ~[paper-1.20.1.jar:git-Paper-62]
at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]
at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1316) ~[paper-1.20.1.jar:git-Paper-62]
at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1309) ~[paper-1.20.1.jar:git-Paper-62]
at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?]
at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1287) ~[paper-1.20.1.jar:git-Paper-62]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1175) ~[paper-1.20.1.jar:git-Paper-62]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:318) ~[paper-1.20.1.jar:git-Paper-62]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information