I think you want to use some magic number like 0xF00000 or 0xF000F0 for the packedLight instead of 0, but I'm not sure, and I also don't know much about the packedLight system
As the title says, I can't find a way to render an ItemStack without coping LOTS of vanilla code, so I just want to ask for some suggestions about it (or a mod that already did this)
Forge always trying to load ClientWorld in server side no metter what I do.
Also I printed the World variable before the crash line, the output:
[com.shblock.colossalbattery.tileentity.TileBatteryCore:write:116]: ServerLevel[world]
crash-2021-07-08_19.00.56-server.txt
Code in the crash report: github
The last step before I can publish this mod...
But this looks like a problem in my environment, it looks like a problem in gradle or idea, so I guess the mc version doesn't super matter?
One thing I noticed is the LineSepeartors of files in the broken jar is changed, but I changed it back and it didn't work.
github issue
version 1.0.14 works fine, and 1.0.15 is a very small change (you can see the changes in github commit), it works in IDEA, but just crash in a normal environment.
Did anyone encountered this problem?crash-2021-07-01_07.30.39-client (1).txt(btw my mod is not CyclopsCore, it's IntegratedProxy)