NotEnoughLuck

NotEnoughLuck

246 Downloads

[BUG]提喀之骰掷得6点时出现空指针异常

WakelessSloth56 opened this issue · 0 comments

commented
[20:03:25.253][Server thread/ERROR][ne.mi.se.MinecraftServer/]: Encountered an unexpected exception
 net.minecraft.ReportedException: Ticking player
        at net.minecraft.server.network.ServerConnectionListener.tick(ServerConnectionListener.java:145) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:882) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:808) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        at net.minecraft.client.server.IntegratedServer.tickServer(IntegratedServer.java:86) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:668) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:258) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: java.lang.NullPointerException: Cannot invoke "net.minecraft.world.effect.MobEffectInstance.getEffect()" because "p_147208_" is null
        at net.minecraft.world.entity.LivingEntity.addEffect(LivingEntity.java:887) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        at net.minecraft.world.entity.LivingEntity.addEffect(LivingEntity.java:880) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        at org.auioc.mods.notenoughluck.common.item.base.DiceItem.inventoryTick(DiceItem.java:63) ~[%2381!/:?]
        at net.minecraft.world.item.ItemStack.inventoryTick(ItemStack.java:484) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        at net.minecraft.world.entity.player.Inventory.tick(Inventory.java:235) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        at net.minecraft.world.entity.player.Player.aiStep(Player.java:489) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        at net.minecraft.world.entity.LivingEntity.tick(LivingEntity.java:2249) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        at net.minecraft.world.entity.player.Player.tick(Player.java:234) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        at net.minecraft.server.level.ServerPlayer.doTick(ServerPlayer.java:439) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.tick(ServerGamePacketListenerImpl.java:206) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        at net.minecraft.network.Connection.tick(Connection.java:233) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        at net.minecraft.server.network.ServerConnectionListener.tick(ServerConnectionListener.java:142) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        ... 6 more