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

Bedrock players unable to pull Mushroom Stem block from creative #5062

Open
sinDeadman opened this issue Sep 26, 2024 · 1 comment
Open

Bedrock players unable to pull Mushroom Stem block from creative #5062

sinDeadman opened this issue Sep 26, 2024 · 1 comment
Labels
Confirmed Bug The bug reported is confirmed and able to be replicated.

Comments

@sinDeadman
Copy link

Describe the bug

I have a bedrock player in creative and when he tries to take a mushroom stem from creative mode and use it, it pushes an error message in the server console

To Reproduce

Player is playing on mobile
Player is in creative
Player opens creative menu
Player tries to take "Mushroom Stem" and add it to his inventory
Item does not move to inventory and triggers an error in the server console

Expected behaviour

Expected behavior is that the item should be able to be put into the players inventory from the creative menu

Screenshots / Videos

java.lang.NullPointerException: Cannot invoke "org.geysermc.mcprotocollib.protocol.data.game.item.ItemStack.getAmount()" because "javaCreativeItem" is null
at Geyser-Spigot.jar/org.geysermc.geyser.translator.inventory.PlayerInventoryTranslator.translateCreativeRequest(PlayerInventoryTranslator.java:500) ~[Geyser-Spigot.jar:?]
at Geyser-Spigot.jar/org.geysermc.geyser.translator.inventory.InventoryTranslator.translateRequests(InventoryTranslator.java:175) ~[Geyser-Spigot.jar:?]
at Geyser-Spigot.jar/org.geysermc.geyser.translator.protocol.bedrock.BedrockItemStackRequestTranslator.translate(BedrockItemStackRequestTranslator.java:48) ~[Geyser-Spigot.jar:?]
at Geyser-Spigot.jar/org.geysermc.geyser.translator.protocol.bedrock.BedrockItemStackRequestTranslator.translate(BedrockItemStackRequestTranslator.java:38) ~[Geyser-Spigot.jar:?]
at Geyser-Spigot.jar/org.geysermc.geyser.registry.PacketTranslatorRegistry.translate0(PacketTranslatorRegistry.java:90) ~[Geyser-Spigot.jar:?]
at Geyser-Spigot.jar/org.geysermc.geyser.registry.PacketTranslatorRegistry.lambda$translate$0(PacketTranslatorRegistry.java:70) ~[Geyser-Spigot.jar:?]
at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174) ~[netty-common-4.1.97.Final.jar:4.1.97.Final]
at io.netty.channel.DefaultEventLoop.run(DefaultEventLoop.java:54) ~[netty-transport-4.1.97.Final.jar:4.1.97.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[netty-common-4.1.97.Final.jar:4.1.97.Final]
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.97.Final.jar:4.1.97.Final]
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.97.Final.jar:4.1.97.Final]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
[20:05:42 WARN]: java.lang.NullPointerException: Cannot invoke "org.geysermc.mcprotocollib.protocol.data.game.item.ItemStack.getAmount()" because "javaCreativeItem" is null
[20:05:42 WARN]: at Geyser-Spigot.jar//org.geysermc.geyser.translator.inventory.PlayerInventoryTranslator.translateCreativeRequest(PlayerInventoryTranslator.java:500)
[20:05:42 WARN]: at Geyser-Spigot.jar//org.geysermc.geyser.translator.inventory.InventoryTranslator.translateRequests(InventoryTranslator.java:175)
[20:05:42 WARN]: at Geyser-Spigot.jar//org.geysermc.geyser.translator.protocol.bedrock.BedrockItemStackRequestTranslator.translate(BedrockItemStackRequestTranslator.java:48)
[20:05:42 WARN]: at Geyser-Spigot.jar//org.geysermc.geyser.translator.protocol.bedrock.BedrockItemStackRequestTranslator.translate(BedrockItemStackRequestTranslator.java:38)
[20:05:42 WARN]: at Geyser-Spigot.jar//org.geysermc.geyser.registry.PacketTranslatorRegistry.translate0(PacketTranslatorRegistry.java:90)
[20:05:42 WARN]: at Geyser-Spigot.jar//org.geysermc.geyser.registry.PacketTranslatorRegistry.lambda$translate$0(PacketTranslatorRegistry.java:70)
[20:05:42 WARN]: at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174)
[20:05:42 WARN]: at io.netty.channel.DefaultEventLoop.run(DefaultEventLoop.java:54)
[20:05:42 WARN]: at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
[20:05:42 WARN]: at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
[20:05:42 WARN]: at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
[20:05:42 WARN]: at java.base/java.lang.Thread.run(Thread.java:1583)

Server Version and Plugins

Server is on 1.21.1 with Geyser version from 9/17/2024

Geyser Dump

https://dump.geysermc.org/CI9lW1J4HecnGHNl5zv0vPJK3OVrlJn0

Geyser Version

7332c6b

Minecraft: Bedrock Edition Device/Version

Mobile Phone Bedrock 1.21.30

Additional Context

No response

@onebeastchris onebeastchris added the Confirmed Bug The bug reported is confirmed and able to be replicated. label Oct 7, 2024
@onebeastchris
Copy link
Member

related to #4367

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Confirmed Bug The bug reported is confirmed and able to be replicated.
Projects
None yet
Development

No branches or pull requests

2 participants