Respawn inventory item fails with null pointer exception
athrane opened this issue ยท 2 comments
Stack trace:
[15Aug2021 16:43:47.596] [Server thread/ERROR] [bassebombecraft.BassebombeCraft/]: java.lang.NullPointerException
at bassebombecraft.entity.EntityUtils.setAttribute(EntityUtils.java:457)
at bassebombecraft.operator.entity.AddAttribute.run(AddAttribute.java:53)
at bassebombecraft.operator.Operators.run(Operators.java:231)
at bassebombecraft.item.action.inventory.ExecuteOperatorOnTarget.applyEffect(ExecuteOperatorOnTarget.java:43)
at bassebombecraft.item.inventory.GenericInventoryItem.applyEffect(GenericInventoryItem.java:191)
at bassebombecraft.item.inventory.GenericInventoryItem.inventoryTick(GenericInventoryItem.java:152)
at net.minecraft.item.ItemStack.inventoryTick(ItemStack.java:499)
at net.minecraft.entity.player.PlayerInventory.tick(PlayerInventory.java:265)
at net.minecraft.entity.player.PlayerEntity.livingTick(PlayerEntity.java:514)
at net.minecraft.entity.LivingEntity.tick(LivingEntity.java:2305)
at net.minecraft.entity.player.PlayerEntity.tick(PlayerEntity.java:227)
at net.minecraft.entity.player.ServerPlayerEntity.playerTick(ServerPlayerEntity.java:422)
at net.minecraft.network.play.ServerPlayNetHandler.tick(ServerPlayNetHandler.java:212)
at net.minecraft.network.NetworkManager.tick(NetworkManager.java:248)
at net.minecraft.network.NetworkSystem.tick(NetworkSystem.java:151)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:899)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:821)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:84)
at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:664)
at net.minecraft.server.MinecraftServer.lambda$startServer$0(MinecraftServer.java:233)
at java.lang.Thread.run(Thread.java:748)
Resolved with commit: 945ba1d
The issues seems to be related to setting entity attributes in 1.16.
See #1182 as well.