BlockProt

BlockProt

17.2k Downloads

[Bug]: Locked shulker boxes break without dropping (MC 1.20+)

explodatedfaces opened this issue ยท 2 comments

commented

Version of BlockProt

Latest

Description of the bug

When breaking a shulker box that is locked on Minecraft 1.20+ the box will disappear without dropping.

Log of error that occurs:

[Server thread/ERROR]: Could not pass event BlockBreakEvent to BlockProt v1.1.10 de.sean.blockprot.bukkit.shaded.nbtapi.NbtApiException: [?]Error while calling the method 'getTagType(java.lang.String)', loaded: true, Enum: COMPOUND_GET_TYPE, Passed Class: class java.lang.Boolean at de.sean.blockprot.bukkit.shaded.nbtapi.utils.nmsmappings.ReflectionMethod.run(ReflectionMethod.java:358) ~[blockprot-spigot-1.1.10-all.jar:?] at de.sean.blockprot.bukkit.shaded.nbtapi.NBTReflectionUtil.getData(NBTReflectionUtil.java:635) ~[blockprot-spigot-1.1.10-all.jar:?] at de.sean.blockprot.bukkit.shaded.nbtapi.NBTCompound.getType(NBTCompound.java:1008) ~[blockprot-spigot-1.1.10-all.jar:?] at de.sean.blockprot.bukkit.shaded.nbtapi.NBTCompound.addCompound(NBTCompound.java:665) ~[blockprot-spigot-1.1.10-all.jar:?] at de.sean.blockprot.bukkit.shaded.nbtapi.NBTCompound.getOrCreateCompound(NBTCompound.java:705) ~[blockprot-spigot-1.1.10-all.jar:?] at de.sean.blockprot.bukkit.listeners.BlockEventListener.onShulkerBoxBreak(BlockEventListener.java:117) ~[blockprot-spigot-1.1.10-all.jar:?] at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor71.execute(Unknown Source) ~[?:?] at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-api-1.20-R0.1-SNAPSHOT.jar:?] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:81) ~[paper-api-1.20-R0.1-SNAPSHOT.jar:git-Paper-"648c000"] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.20-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[paper-1.20.jar:git-Paper-"648c000"] at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[paper-1.20.jar:git-Paper-"648c000"] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:615) ~[paper-api-1.20-R0.1-SNAPSHOT.jar:?] at net.minecraft.server.level.ServerPlayerGameMode.destroyBlock(ServerPlayerGameMode.java:378) ~[?:?] at net.minecraft.server.level.ServerPlayerGameMode.destroyAndAck(ServerPlayerGameMode.java:337) ~[?:?] at net.minecraft.server.level.ServerPlayerGameMode.handleBlockBreakAction(ServerPlayerGameMode.java:301) ~[?:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.handlePlayerAction(ServerGamePacketListenerImpl.java:1869) ~[?:?] at net.minecraft.network.protocol.game.ServerboundPlayerActionPacket.handle(ServerboundPlayerActionPacket.java:42) ~[?:?] at net.minecraft.network.protocol.game.ServerboundPlayerActionPacket.a(ServerboundPlayerActionPacket.java:15) ~[?:?] at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:51) ~[?:?] at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.20.jar:git-Paper-"648c000"] 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:1341) ~[paper-1.20.jar:git-Paper-"648c000"] at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:197) ~[paper-1.20.jar:git-Paper-"648c000"] at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?] at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1318) ~[paper-1.20.jar:git-Paper-"648c000"] at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1311) ~[paper-1.20.jar:git-Paper-"648c000"] at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?] at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1289) ~[paper-1.20.jar:git-Paper-"648c000"] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1177) ~[paper-1.20.jar:git-Paper-"648c000"] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) ~[paper-1.20.jar:git-Paper-"648c000"] at java.lang.Thread.run(Thread.java:833) ~[?:?] Caused by: java.lang.IllegalArgumentException: java.lang.ClassCastException@19edabf at jdk.internal.reflect.GeneratedMethodAccessor16.invoke(Unknown Source) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] at de.sean.blockprot.bukkit.shaded.nbtapi.utils.nmsmappings.ReflectionMethod.run(ReflectionMethod.java:355) ~[blockprot-spigot-1.1.10-all.jar:?] ... 32 more

Steps to reproduce

Place a shulker box.
Lock it.
Put whatever you want in it.
Break it.
It's gone :(.

Additional context

No response

commented

I don't think the rest of the plugin would work on 1.20 anyway, as BlockProt 1.1.10 doesn't support 1.20 Please try 1.1.11, which officially supports 1.20.

commented

1.1.11 does resolve this issue so its only an incompatibility and not a bug. Closing, thanks spnda!