The controller.showInHand give me a blank map #2

Closed
opened 2022-07-04 19:59:42 +02:00 by Caranouga · 7 comments
Caranouga commented 2022-07-04 19:59:42 +02:00 (Migrated from github.com)

As you told me on the issue I had opened on mapmanager. I used your fork, but I have 1 problem:

  1. The functions controller.showInHand and controller.showInventory give me empty maps.

The code:
My inventory after the command: image

  1. The code I use to display the images in a frame gives me an error

The code: https://www.toptal.com/developers/hastebin/yipijezohe.java
The error: log java.lang.NoSuchMethodException: net.minecraft.server.level.WorldServer.getEntity() [19:21:14] [Server thread/WARN]: at java.base/java.lang.Class.getMethod(Class.java:2195) [19:21:14] [Server thread/WARN]: at MapReflectionAPI-1.1.jar//tech.sbdevelopment.mapreflectionapi.utils.ReflectionUtil.callMethod(ReflectionUtil.java:283) [19:21:14] [Server thread/WARN]: at MapReflectionAPI-1.1.jar//tech.sbdevelopment.mapreflectionapi.api.MapWrapper$1.getItemFrameById(MapWrapper.java:242) [19:21:14] [Server thread/WARN]: at MapReflectionAPI-1.1.jar//tech.sbdevelopment.mapreflectionapi.api.MapWrapper$1.lambda$showInFrame$0(MapWrapper.java:219) [19:21:14] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:101) [19:21:14] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) [19:21:14] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1567) [19:21:14] [Server thread/WARN]: at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:490) [19:21:14] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1483) [19:21:14] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1282) [19:21:14] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) [19:21:14] [Server thread/WARN]: at java.base/java.lang.Thread.run(Thread.java:831)
The log: https://www.toptal.com/developers/hastebin/ahovexaloc.log

As you told me on the issue I had opened on mapmanager. I used your fork, but I have 1 problem: 1) The functions controller.showInHand and controller.showInventory give me empty maps. The code: My inventory after the command: ![image](https://user-images.githubusercontent.com/62339171/177200963-1acfcd40-8a51-43f9-b817-672ad10e36ca.png) 2) The code I use to display the images in a frame gives me an error The code: https://www.toptal.com/developers/hastebin/yipijezohe.java The error: ```log java.lang.NoSuchMethodException: net.minecraft.server.level.WorldServer.getEntity() [19:21:14] [Server thread/WARN]: at java.base/java.lang.Class.getMethod(Class.java:2195) [19:21:14] [Server thread/WARN]: at MapReflectionAPI-1.1.jar//tech.sbdevelopment.mapreflectionapi.utils.ReflectionUtil.callMethod(ReflectionUtil.java:283) [19:21:14] [Server thread/WARN]: at MapReflectionAPI-1.1.jar//tech.sbdevelopment.mapreflectionapi.api.MapWrapper$1.getItemFrameById(MapWrapper.java:242) [19:21:14] [Server thread/WARN]: at MapReflectionAPI-1.1.jar//tech.sbdevelopment.mapreflectionapi.api.MapWrapper$1.lambda$showInFrame$0(MapWrapper.java:219) [19:21:14] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:101) [19:21:14] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) [19:21:14] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1567) [19:21:14] [Server thread/WARN]: at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:490) [19:21:14] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1483) [19:21:14] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1282) [19:21:14] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) [19:21:14] [Server thread/WARN]: at java.base/java.lang.Thread.run(Thread.java:831)``` The log: https://www.toptal.com/developers/hastebin/ahovexaloc.log
stijnb1234 commented 2022-07-04 21:06:08 +02:00 (Migrated from github.com)

Will check that.

Will check that.
Caranouga commented 2022-07-04 21:15:09 +02:00 (Migrated from github.com)

I use minecraft 1.17.1 and paper ^^ I don't know if it's useful

I use minecraft 1.17.1 and paper ^^ I don't know if it's useful
Caranouga commented 2022-07-05 12:43:29 +02:00 (Migrated from github.com)

If there is anything else I can do to help you let me know. If not, do you have a solution for one of the two problems. I also forgot to tell you, but for the 2nd problem where I have the error, the photo is displayed well in the frame, but it still gives me the error

If there is anything else I can do to help you let me know. If not, do you have a solution for one of the two problems. I also forgot to tell you, but for the 2nd problem where I have the error, the photo is displayed well in the frame, but it still gives me the error
stijnb1234 commented 2022-07-05 15:19:42 +02:00 (Migrated from github.com)

If there is anything else I can do to help you let me know. If not, do you have a solution for one of the two problems. I also forgot to tell you, but for the 2nd problem where I have the error, the photo is displayed well in the frame, but it still gives me the error

It's just a fault in the reflection part. Will fix that asap.

> If there is anything else I can do to help you let me know. If not, do you have a solution for one of the two problems. I also forgot to tell you, but for the 2nd problem where I have the error, the photo is displayed well in the frame, but it still gives me the error It's just a fault in the reflection part. Will fix that asap.
Caranouga commented 2022-07-29 13:53:25 +02:00 (Migrated from github.com)

Hello, do you have any news?

Hello, do you have any news?
stijnb1234 commented 2022-07-29 13:54:20 +02:00 (Migrated from github.com)

Hello, do you have any news?

Will start in a few hours with this issue and #4.

> Hello, do you have any news? Will start in a few hours with this issue and #4.
Caranouga commented 2022-07-29 13:58:25 +02:00 (Migrated from github.com)

Hello, do you have any news?

Will start in a few hours with this issue and #4.

ok

> > Hello, do you have any news? > > Will start in a few hours with this issue and #4. ok
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: SBDevelopment/MapReflectionAPI#2
No description provided.