team-abnormals / upgrade-aquatic

Further upgrades the Update Aquatic with more aquatic additions!
https://www.curseforge.com/minecraft/mc-mods/upgrade-aquatic
Other
157 stars 48 forks source link

mixin(?) issue with sleeping bags mod, 1.20.1, forge version 47.3.5 #422

Open muppetenergy opened 3 months ago

muppetenergy commented 3 months ago

Hi there,

I tried out this mod on my dedicated server, but unfortunately it makes our sleeping bags not work. The console shows this when anyone tries to use them:

[05:17:07] [Server thread/ERROR] [ne.mi.ev.EventBus/EVENTBUS]: Exception caught during firing event: Cannot invoke "net.minecraft.core.BlockPos.m123342()" because "p151571" is null Index: 1 Listeners: 0: NORMAL 1: ASM: class com.teamabnormals.upgrade_aquatic.core.other.UAEvents onPlayerSleep(Lnet/minecraftforge/event/entity/player/PlayerSleepInBedEvent;)V java.lang.NullPointerException: Cannot invoke "net.minecraft.core.BlockPos.m123342()" because "p151571" is null at TRANSFORMER/minecraft@1.20.1/net.minecraft.world.level.LevelHeightAccessor.m151570(LevelHeightAccessor.java:41) at TRANSFORMER/minecraft@1.20.1/net.minecraft.world.level.Level.m8055(Level.java:352) at TRANSFORMER/upgrade_aquatic@6.0.1/com.teamabnormals.upgrade_aquatic.core.other.UAEvents.onPlayerSleep(UAEvents.java:118) at TRANSFORMER/upgrade_aquatic@6.0.1/com.teamabnormals.upgrade_aquatic.core.other.__UAEvents_onPlayerSleep_PlayerSleepInBedEvent.invoke(.dynamic) at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:73) at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.post(EventBus.java:315) at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.post(EventBus.java:296) at TRANSFORMER/forge@47.2.20/net.minecraftforge.event.ForgeEventFactory.onPlayerSleepInBed(ForgeEventFactory.java:519) at TRANSFORMER/sleeping_bags@1.20.1-1.0.8/de.maxhenkel.sleepingbags.items.ItemSleepingBag.trySleep(ItemSleepingBag.java:62) at TRANSFORMER/sleeping_bags@1.20.1-1.0.8/de.maxhenkel.sleepingbags.items.ItemSleepingBag.m7203(ItemSleepingBag.java:52) at TRANSFORMER/minecraft@1.20.1/net.minecraft.world.item.ItemStack.m41682(ItemStack.java:275) at TRANSFORMER/minecraft@1.20.1/net.minecraft.server.level.ServerPlayerGameMode.m6261(ServerPlayerGameMode.java:286) at TRANSFORMER/minecraft@1.20.1/net.minecraft.server.network.ServerGamePacketListenerImpl.m5760(ServerGamePacketListenerImpl.java:1087) at TRANSFORMER/minecraft@1.20.1/net.minecraft.network.protocol.game.ServerboundUseItemPacket.m5797(ServerboundUseItemPacket.java:29) at TRANSFORMER/minecraft@1.20.1/net.minecraft.network.protocol.game.ServerboundUseItemPacket.m5797(ServerboundUseItemPacket.java:7) at TRANSFORMER/minecraft@1.20.1/net.minecraft.network.protocol.PacketUtils.m263899(PacketUtils.java:22) at TRANSFORMER/minecraft@1.20.1/net.minecraft.server.TickTask.run(TickTask.java:18) at TRANSFORMER/minecraft@1.20.1/net.minecraft.util.thread.BlockableEventLoop.m6367(BlockableEventLoop.java:156) at TRANSFORMER/minecraft@1.20.1/net.minecraft.util.thread.ReentrantBlockableEventLoop.m6367(ReentrantBlockableEventLoop.java:23) at TRANSFORMER/minecraft@1.20.1/net.minecraft.server.MinecraftServer.m6367(MinecraftServer.java:770) at TRANSFORMER/minecraft@1.20.1/net.minecraft.server.MinecraftServer.m6367(MinecraftServer.java:161) at TRANSFORMER/minecraft@1.20.1/net.minecraft.util.thread.BlockableEventLoop.m7245(BlockableEventLoop.java:130) at TRANSFORMER/minecraft@1.20.1/net.minecraft.server.MinecraftServer.m129961(MinecraftServer.java:753) at TRANSFORMER/minecraft@1.20.1/net.minecraft.server.MinecraftServer.m7245(MinecraftServer.java:747) at TRANSFORMER/minecraft@1.20.1/net.minecraft.util.thread.BlockableEventLoop.m18699(BlockableEventLoop.java:115) at TRANSFORMER/minecraft@1.20.1/net.minecraft.server.MinecraftServer.m130012(MinecraftServer.java:732) at TRANSFORMER/minecraft@1.20.1/net.minecraft.server.MinecraftServer.m130011(MinecraftServer.java:665) at TRANSFORMER/minecraft@1.20.1/net.minecraft.server.MinecraftServer.m206580(MinecraftServer.java:251) at java.base/java.lang.Thread.run(Thread.java:840) [05:17:07] [Server thread/ERROR] [minecraft/PacketUtils]: Failed to handle packet net.minecraft.network.protocol.game.ServerboundUseItemPacket@10e37d86, suppressing error java.lang.NullPointerException: Cannot invoke "net.minecraft.core.BlockPos.m123342()" because "p151571" is null at net.minecraft.world.level.LevelHeightAccessor.m151570(LevelHeightAccessor.java:41) ~[server-1.20.1-20230612.114412-srg.jar%23283!/:?] {re:computing_frames,re:classloading,re:mixin} at net.minecraft.world.level.Level.m8055(Level.java:352) ~[server-1.20.1-20230612.114412-srg.jar%23283!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:citadel.mixins.json:LevelMixin,pl:mixin:APP:sliceanddice.mixins.json:LevelMixin,pl:mixin:A} at com.teamabnormals.upgrade_aquatic.core.other.UAEvents.onPlayerSleep(UAEvents.java:118) ~[upgrade_aquatic-1.20.1-6.0.1.jar%23276!/:6.0.1] {re:classloading} at com.teamabnormals.upgrade_aquatic.core.other.__UAEvents_onPlayerSleep_PlayerSleepInBedEvent.invoke(.dynamic) ~[upgrade_aquatic-1.20.1-6.0.1.jar%23276!/:6.0.1] {re:classloading,pl:eventbus:B} at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:73) ~[eventbus-6.0.5.jar%2352!/:?] {} at net.minecraftforge.eventbus.EventBus.post(EventBus.java:315) ~[eventbus-6.0.5.jar%2352!/:?] {} at net.minecraftforge.eventbus.EventBus.post(EventBus.java:296) ~[eventbus-6.0.5.jar%2352!/:?] {} at net.minecraftforge.event.ForgeEventFactory.onPlayerSleepInBed(ForgeEventFactory.java:519) ~[forge-1.20.1-47.2.20-universal.jar%23288!/:?] {re:mixin,re:classloading,pl:mixin:APP:modernfix-forge.mixins.json:perf.potential_spawns_alloc.ForgeEventFactoryMixin,pl:mixin:A} at de.maxhenkel.sleepingbags.items.ItemSleepingBag.trySleep(ItemSleepingBag.java:62) ~[sleeping-bags-forge-1.20.1-1.0.8.jar%23262!/:1.20.1-1.0.8] {re:classloading} at de.maxhenkel.sleepingbags.items.ItemSleepingBag.m7203(ItemSleepingBag.java:52) ~[sleeping-bags-forge-1.20.1-1.0.8.jar%23262!/:1.20.1-1.0.8] {re:classloading} at net.minecraft.world.item.ItemStack.m41682(ItemStack.java:275) ~[server-1.20.1-20230612.114412-srg.jar%23283!/:?] {re:mixin,xf:fml:forge:itemstack,re:classloading,xf:fml:forge:itemstack,pl:mixin:APP:placebo.mixins.json:ItemStackMixin,pl:mixin:APP:fastsuite.mixins.json:ItemStackMixin,pl:mixin:APP:quark.mixins.json:ItemStackMixin,pl:mixin:APP:mixins.irons_spellbooks.json:ItemStackMixin,pl:mixin:A} at net.minecraft.server.level.ServerPlayerGameMode.m6261(ServerPlayerGameMode.java:286) ~[server-1.20.1-20230612.114412-srg.jar%23283!/:?] {re:computing_frames,xf:fml:libx:interact,re:mixin,xf:fml:libx:interact,re:classloading,xf:fml:libx:interact} at net.minecraft.server.network.ServerGamePacketListenerImpl.m5760(ServerGamePacketListenerImpl.java:1087) ~[server-1.20.1-20230612.114412-srg.jar%23283!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:modernfix-forge.mixins.json:bugfix.forge_vehicle_packets.ServerGamePacketListenerImplMixin,pl:mixin:APP:railways.mixins.json:ServerGamePacketListenerImplMixin,pl:mixin:APP:supplementaries-common.mixins.json:ServerGamePacketListenerMixin,pl:mixin:APP:toofast.mixins.json:MixinServerNetPlayHandler,pl:mixin:APP:mixins/common/nochatreports.mixins.json:server.MixinServerGamePacketListenerImpl,pl:mixin:APP:quark.mixins.json:accessor.AccessorServerGamePacketListener,pl:mixin:APP:connectivity.mixins.json:ServerPlayNetHandlerMixin,pl:mixin:A} at net.minecraft.network.protocol.game.ServerboundUseItemPacket.m5797(ServerboundUseItemPacket.java:29) ~[server-1.20.1-20230612.114412-srg.jar%23283!/:?] {re:classloading} at net.minecraft.network.protocol.game.ServerboundUseItemPacket.m5797(ServerboundUseItemPacket.java:7) ~[server-1.20.1-20230612.114412-srg.jar%23283!/:?] {re:classloading} at net.minecraft.network.protocol.PacketUtils.m263899(PacketUtils.java:22) ~[server-1.20.1-20230612.114412-srg.jar%23283!/:?] {re:classloading} at net.minecraft.server.TickTask.run(TickTask.java:18) ~[server-1.20.1-20230612.114412-srg.jar%23283!/:?] {re:classloading,re:mixin} at net.minecraft.util.thread.BlockableEventLoop.m6367(BlockableEventLoop.java:156) ~[server-1.20.1-20230612.114412-srg.jar%23283!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:modernfix-common.mixins.json:perf.fix_loop_spin_waiting.BlockableEventLoopMixin,pl:mixin:A} at net.minecraft.util.thread.ReentrantBlockableEventLoop.m6367(ReentrantBlockableEventLoop.java:23) ~[server-1.20.1-20230612.114412-srg.jar%23283!/:?] {re:mixin,re:computing_frames,re:classloading} at net.minecraft.server.MinecraftServer.m6367(MinecraftServer.java:770) ~[server-1.20.1-20230612.114412-srg.jar%23283!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:citadel.mixins.json:MinecraftServerMixin,pl:mixin:APP:modernfix-common.mixins.json:core.MinecraftServerMixin,pl:mixin:APP:modernfix-common.mixins.json:perf.dedicated_reload_executor.MinecraftServerMixin,pl:mixin:APP:balm.mixins.json:MinecraftServerMixin,pl:mixin:APP:blueprint.mixins.json:MinecraftServerMixin,pl:mixin:A} at net.minecraft.server.MinecraftServer.m6367(MinecraftServer.java:161) ~[server-1.20.1-20230612.114412-srg.jar%23283!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:citadel.mixins.json:MinecraftServerMixin,pl:mixin:APP:modernfix-common.mixins.json:core.MinecraftServerMixin,pl:mixin:APP:modernfix-common.mixins.json:perf.dedicated_reload_executor.MinecraftServerMixin,pl:mixin:APP:balm.mixins.json:MinecraftServerMixin,pl:mixin:APP:blueprint.mixins.json:MinecraftServerMixin,pl:mixin:A} at net.minecraft.util.thread.BlockableEventLoop.m7245(BlockableEventLoop.java:130) ~[server-1.20.1-20230612.114412-srg.jar%23283!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:modernfix-common.mixins.json:perf.fix_loop_spin_waiting.BlockableEventLoopMixin,pl:mixin:A} at net.minecraft.server.MinecraftServer.m129961(MinecraftServer.java:753) ~[server-1.20.1-20230612.114412-srg.jar%23283!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:citadel.mixins.json:MinecraftServerMixin,pl:mixin:APP:modernfix-common.mixins.json:core.MinecraftServerMixin,pl:mixin:APP:modernfix-common.mixins.json:perf.dedicated_reload_executor.MinecraftServerMixin,pl:mixin:APP:balm.mixins.json:MinecraftServerMixin,pl:mixin:APP:blueprint.mixins.json:MinecraftServerMixin,pl:mixin:A} at net.minecraft.server.MinecraftServer.m7245(MinecraftServer.java:747) ~[server-1.20.1-20230612.114412-srg.jar%23283!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:citadel.mixins.json:MinecraftServerMixin,pl:mixin:APP:modernfix-common.mixins.json:core.MinecraftServerMixin,pl:mixin:APP:modernfix-common.mixins.json:perf.dedicated_reload_executor.MinecraftServerMixin,pl:mixin:APP:balm.mixins.json:MinecraftServerMixin,pl:mixin:APP:blueprint.mixins.json:MinecraftServerMixin,pl:mixin:A} at net.minecraft.util.thread.BlockableEventLoop.m18699(BlockableEventLoop.java:115) ~[server-1.20.1-20230612.114412-srg.jar%23283!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:modernfix-common.mixins.json:perf.fix_loop_spin_waiting.BlockableEventLoopMixin,pl:mixin:A} at net.minecraft.server.MinecraftServer.m130012(MinecraftServer.java:732) ~[server-1.20.1-20230612.114412-srg.jar%23283!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:citadel.mixins.json:MinecraftServerMixin,pl:mixin:APP:modernfix-common.mixins.json:core.MinecraftServerMixin,pl:mixin:APP:modernfix-common.mixins.json:perf.dedicated_reload_executor.MinecraftServerMixin,pl:mixin:APP:balm.mixins.json:MinecraftServerMixin,pl:mixin:APP:blueprint.mixins.json:MinecraftServerMixin,pl:mixin:A} at net.minecraft.server.MinecraftServer.m130011(MinecraftServer.java:665) ~[server-1.20.1-20230612.114412-srg.jar%23283!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:citadel.mixins.json:MinecraftServerMixin,pl:mixin:APP:modernfix-common.mixins.json:core.MinecraftServerMixin,pl:mixin:APP:modernfix-common.mixins.json:perf.dedicated_reload_executor.MinecraftServerMixin,pl:mixin:APP:balm.mixins.json:MinecraftServerMixin,pl:mixin:APP:blueprint.mixins.json:MinecraftServerMixin,pl:mixin:A} at net.minecraft.server.MinecraftServer.m206580(MinecraftServer.java:251) ~[server-1.20.1-20230612.114412-srg.jar%23283!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:citadel.mixins.json:MinecraftServerMixin,pl:mixin:APP:modernfix-common.mixins.json:core.MinecraftServerMixin,pl:mixin:APP:modernfix-common.mixins.json:perf.dedicated_reload_executor.MinecraftServerMixin,pl:mixin:APP:balm.mixins.json:MinecraftServerMixin,pl:mixin:APP:blueprint.mixins.json:MinecraftServerMixin,pl:mixin:A} at java.lang.Thread.run(Thread.java:840) ~[?:?] {re:mixin}