Biome Makeover

Biome Makeover

4M Downloads

Cannot invoke because "curse" is null

kapitanluffy opened this issue ยท 0 comments

commented

A player told me his weapon has all the curses already. Seems like he maxed out all the curses

Here's the log:

net.minecraft.class_148: Ticking block entity
	at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:911) ~[server-intermediary.jar:?]
	at net.minecraft.class_3176.method_3813(class_3176.java:322) ~[server-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:851) ~[server-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:697) ~[server-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:273) ~[server-intermediary.jar:?]
	at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: java.lang.NullPointerException: Cannot invoke "net.minecraft.class_1887.method_8192(net.minecraft.class_1799)" because "curse" is null
	at party.lemons.biomemakeover.block.blockentity.AltarBlockEntity.curseItemStack(AltarBlockEntity.java:267) ~[biomemakeover-FABRIC-1.18.2-1.4.18.jar:?]
	at party.lemons.biomemakeover.block.blockentity.AltarBlockEntity.tick(AltarBlockEntity.java:121) ~[biomemakeover-FABRIC-1.18.2-1.4.18.jar:?]
	at party.lemons.biomemakeover.block.blockentity.AltarBlockEntity.lambda$getTicker$2(AltarBlockEntity.java:398) ~[biomemakeover-FABRIC-1.18.2-1.4.18.jar:?]
	at net.minecraft.class_2818$class_5563.method_31703(class_2818.java:659) ~[server-intermediary.jar:?]
	at net.minecraft.class_2818$class_5564.method_31703(class_2818.java:713) ~[server-intermediary.jar:?]
	at net.minecraft.class_1937.method_18471(class_1937.java:475) ~[server-intermediary.jar:?]
	at net.minecraft.class_3218.method_18765(class_3218.java:368) ~[server-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:907) ~[server-intermediary.jar:?]
	... 5 more