Open ItsukaHiro opened 3 months ago
After digging a liitle bit (when I realize M82A2 still have iron ingot as material, just wrong number), I try to modify the actual amount of iron ingot by using datapack. And yah, the number show in workbench equal the actual amount minus 256
And, if I have enough material (as the datapack show), I still can craft the gun normally on the server :V
Found the issue: When transfer the recipe through network, the code use readByte() and writeByte(), which is limited in -127 to 127, while the number is larger. Easy solution is change it to readShort() and writeShort().
After manage to build the jar file, crafting recipe is working on client side. But when running mod on server, there is 4 guns that have wrong recipe:
Compare to singleplayer:
I really need a fix right now because I'm planning to open a server in around next two. Hope you can help me.