Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not pass event InventoryClickEvent to LoneLibs v1.0.59 java.lang.NullPointerException #267

Open
4 tasks done
Aitooor opened this issue Oct 21, 2024 · 0 comments
Open
4 tasks done
Labels
type: bug Something isn't working

Comments

@Aitooor
Copy link

Aitooor commented Oct 21, 2024

Terms

  • I'm using the very latest version of CosmeticsCore and its dependencies.
  • I already searched on this Github page to check if the same issue was already reported.
  • I already searched on the plugin wiki to know if a solution is already known.
  • I already searched on the Discord server to know if anyone already provided a solution in the past for the issue.

Discord tag (optional)

aitooor

What happened?

I try to modify the color of a balloon, but it gives me that error. Even if in the end you manage to change the color, the interface is bugged. And the error appears. Download everything from their corresponding urls again, but it remains the same.

Steps to reproduce the issue

1.- Add a ballon that can change color
2.- Use /wardrobe or enter to the already setup wardrobe.
3.- Try to change the color with right click.
4.- See the error at console.

Server version

[19:51:44 INFO]: Checking version, please wait...
[19:51:44 INFO]: This server is running Pufferfish version 1.21.1-20-HEAD@3415da0 (2024-10-21T02:44:49Z) (Implementing API version 1.21.1-R0.1-SNAPSHOT)
You are on the latest version!
Previous version: 1.21.1-19-8abd47b (MC: 1.21.1)

CosmeticsCore Version

[19:52:29 INFO]: CosmeticsCore version 1.3.0-release-2

ProtocolLib Version

[20:02:18 INFO]: ProtocolLib version 5.3.0
[20:02:18 INFO]: Provides read/write access to the Minecraft protocol.
[20:02:18 INFO]: Authors: dmulloy2 and comphenix

LoneLibs Version

[20:02:31 INFO]: LoneLibs version 1.0.59
[20:02:31 INFO]: Collection of libs used by my plugins
[20:02:31 INFO]: Authors: LoneDev and others

FULL server log

latest.log

Error (optional)

[19:37:40 INFO]: Aitooor issued server command: /wardrobe
[19:37:44 ERROR]: Could not pass event InventoryClickEvent to LoneLibs v1.0.59
java.lang.NullPointerException: Cannot invoke "java.util.List.size()" because "<local6>" is null
        at CosmeticsCore_1.3.0-release-2.jar/dev.lone.cosmeticscore.main.q.a(SourceFile:146) ~[CosmeticsCore_1.3.0-release-2.jar:?]
        at CosmeticsCore_1.3.0-release-2.jar/dev.lone.cosmeticscore.main.q.a(SourceFile:134) ~[CosmeticsCore_1.3.0-release-2.jar:?]
        at CosmeticsCore_1.3.0-release-2.jar/dev.lone.cosmeticscore.main.q.aS(SourceFile:109) ~[CosmeticsCore_1.3.0-release-2.jar:?]
        at CosmeticsCore_1.3.0-release-2.jar/dev.lone.cosmeticscore.main.o.a(SourceFile:364) ~[CosmeticsCore_1.3.0-release-2.jar:?]
        at LoneLibs.jar/fr.mrmicky.fastinv.FastInv.handleClick(FastInv.java:316) ~[LoneLibs.jar:?]
        at LoneLibs.jar/fr.mrmicky.fastinv.FastInvManager$1.onInventoryClick(FastInvManager.java:50) ~[LoneLibs.jar:?]
        at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:44) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?]
        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:1.21.1-19-8abd47b]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?]
        at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[pufferfish-1.21.1.jar:1.21.1-19-8abd47b]
        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) ~[pufferfish-1.21.1.jar:1.21.1-19-8abd47b]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:630) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.handleContainerClick(ServerGamePacketListenerImpl.java:3225) ~[pufferfish-1.21.1.jar:1.21.1-19-8abd47b]
        at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.handle(ServerboundContainerClickPacket.java:69) ~[pufferfish-1.21.1.jar:1.21.1-19-8abd47b]
        at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.handle(ServerboundContainerClickPacket.java:33) ~[pufferfish-1.21.1.jar:1.21.1-19-8abd47b]
        at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:56) ~[pufferfish-1.21.1.jar:1.21.1-19-8abd47b]
        at net.minecraft.server.TickTask.run(TickTask.java:18) ~[pufferfish-1.21.1.jar:1.21.1-19-8abd47b]
        at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:151) ~[pufferfish-1.21.1.jar:1.21.1-19-8abd47b]
        at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[pufferfish-1.21.1.jar:1.21.1-19-8abd47b]
        at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1542) ~[pufferfish-1.21.1.jar:1.21.1-19-8abd47b]
        at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:201) ~[pufferfish-1.21.1.jar:1.21.1-19-8abd47b]
        at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:125) ~[pufferfish-1.21.1.jar:1.21.1-19-8abd47b]
        at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1519) ~[pufferfish-1.21.1.jar:1.21.1-19-8abd47b]
        at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1512) ~[pufferfish-1.21.1.jar:1.21.1-19-8abd47b]
        at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:135) ~[pufferfish-1.21.1.jar:1.21.1-19-8abd47b]
        at net.minecraft.server.MinecraftServer.managedBlock(MinecraftServer.java:1471) ~[pufferfish-1.21.1.jar:1.21.1-19-8abd47b]
        at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1478) ~[pufferfish-1.21.1.jar:1.21.1-19-8abd47b]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1323) ~[pufferfish-1.21.1.jar:1.21.1-19-8abd47b]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:330) ~[pufferfish-1.21.1.jar:1.21.1-19-8abd47b]
        at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]

CosmeticsCore config.yml

lang: en
extract_default_assets: false
cosmetics:
  max_equippable:
    body: 3
    balloon: 2
  hide_during_combat:
    enabled: true
    combat_duration_ticks: 600
  fix_invisible_nametag: false
  hide_in_vanish: true
  worlds:
  - '*'
wardrobe_room:
  camera:
    hide_actionbar_texts: true
    use_invisibility_potion: false
    rotation:
      enabled: true
    zoom:
      enabled: true
      min: 2
    fade_effect: true
    location:
      world: Spawn
      x: -423.4838799412368
      y: 7.362931606493253
      z: 1721.3683827200357
      yaw: -0.13189697
      pitch: 26.549982
  mannequin:
    location:
      world: Spawn
      x: -423.5215776783875
      y: 4.0
      z: 1727.5262037179139
      yaw: -179.232
      pitch: -0.1500159
  teleport_area:
    enter:
      world: Spawn
      pos1:
        x: -417.0
        y: 3.0
        z: 1732.0
      pos2:
        x: -413.0
        y: 6.0
        z: 1732.0
    exit_location:
      world: Spawn
      x: -423.512073814316
      y: 4.0
      z: 1727.5767667106759
      yaw: -178.48161
      pitch: -2.100007
  gui:
    cursor_default: fermented_spider_eye:9000001
    cursor_rotate: fermented_spider_eye:9000002
    cursor_pointer: fermented_spider_eye:9000003
    dyeing_pointer: fermented_spider_eye:9100003
    tutorial_gui: fermented_spider_eye:9100004
    tutorial_gui_checked: fermented_spider_eye:9100005
    slots:
      colors:
        not_owned: 195,147,57
        owned: 56,67,100
        wearing: 57,70,195
        wearing_preview: 195,120,57
        max_amount_reached: 111,111,111
      add_item_in_blank_slots:
        # This is useful only for some expert users that need to do some crazy stuff.
        # Do not enable it if you don't know what you are doing.
        enabled: false
        type: PAPER
        custom_model_data: 1337666
send_creative_hidden_hat_message: true
save:
  # Use only one at a time
  file:
    enabled: true
  mysql:
    enabled: false
    url: jdbc:mysql://my_url_database_69.com:3306/database_name
    username: username
    password: password
    table: cosmeticscore_saved
debug: false

Problematic items yml configuration file (optional)

No response

Other files, you can drag and drop them here to upload. (optional)

No response

Screenshots/Videos (you can drag and drop files or paste links)

The video size is more than 10MB and i can't upload here. Youtube upload: https://youtu.be/led0qTFDfYc

@Aitooor Aitooor added the type: bug Something isn't working label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant