gigaherz / PackingTape

A Minecraft Forge Mod
http://minecraft.curseforge.com/projects/packing-tape
Other
11 stars 3 forks source link

Packaged block disapearing when breaking it and cannot unpack with right-click [MC 1.16.2 + Forge-33.0.60 + PackingTape-1.16.2-0.9.7.jar] #26

Closed Gab0248 closed 3 weeks ago

Gab0248 commented 3 years ago

Hello,

I am unable to break a Packaged block on my server or unpack it with right click. When breaking it, it disappear and right-clicking does nothing.

Server is running on MC 1.16.2 + Forge-33.0.60 + PackingTape-1.16.2-0.9.7.jar

Here is the error in the log file:

[12Nov2020 11:18:28.403] [Server thread/FATAL] [net.minecraft.util.concurrent.ThreadTaskExecutor/]: Error executing task on Server java.lang.NullPointerException: null at gigaherz.packingtape.tape.PackagedBlock.func_225533_a_(PackagedBlock.java:137) ~[?:0.9.7] at net.minecraft.block.AbstractBlock$AbstractBlockState.func_227031_a_(AbstractBlock.java:634) ~[?:?] at net.minecraft.server.management.PlayerInteractionManager.func_219441_a(PlayerInteractionManager.java:338) ~[?:?] at net.minecraft.network.play.ServerPlayNetHandler.func_184337_a(ServerPlayNetHandler.java:889) ~[?:?] at net.minecraft.network.play.client.CPlayerTryUseItemOnBlockPacket.func_148833_a(SourceFile:36) ~[?:?] at net.minecraft.network.play.client.CPlayerTryUseItemOnBlockPacket.func_148833_a(SourceFile:10) ~[?:?] at net.minecraft.network.PacketThreadUtil.func_225383_a(SourceFile:21) ~[?:?] at net.minecraft.util.concurrent.TickDelayedTask.run(SourceFile:18) ~[?:?] at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213166_h(SourceFile:144) ~[?:?] at net.minecraft.util.concurrent.RecursiveEventLoop.func_213166_h(SourceFile:23) ~[?:?] at net.minecraft.server.MinecraftServer.func_213166_h(MinecraftServer.java:729) ~[?:?] at net.minecraft.server.MinecraftServer.func_213166_h(MinecraftServer.java:156) ~[?:?] at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213168_p(SourceFile:118) ~[?:?] at net.minecraft.server.MinecraftServer.func_213205_aW(MinecraftServer.java:712) ~[?:?] at net.minecraft.server.MinecraftServer.func_213168_p(MinecraftServer.java:706) ~[?:?] at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213160_bf(SourceFile:103) ~[?:?] at net.minecraft.server.MinecraftServer.func_213202_o(MinecraftServer.java:691) ~[?:?] at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:641) ~[?:?] at net.minecraft.server.MinecraftServer.lambda$func_240784_a_$0(MinecraftServer.java:229) ~[?:?] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_262]

Thank you!

gigaherz commented 3 years ago

I'll take a look as soon as I can.

gigaherz commented 3 years ago

Uhm, do you have a mod list for your server? Something must be causing the data in the packaged block TileEntity to be wiped, and this should never ever happen. I'll add a workaround to avoid crashing and allow breaking the block, but the real damage has already been done: the contents of the package are no longer there.

Gab0248 commented 3 years ago

No problem! Nothing important was in the chest since I was just testing it!

Here is the mod list of the server :

Thanks a lot!