Open alexstaeding opened 4 years ago
From what I can tell this is because there is no way to serialize a byte array (mekanism stores the machine internal config as a byte array). This is also an issue with AE2 memory cards which use a byte array for the color (which is used for linking the card to a specific P2P tunnel)
This is more of a failure for our translator not handling byte arrays, which should be supported just fine.
I am currently running
Issue Description There are a few modded blocks that do not serialize correctly. So far I have found a few blocks from mekanism an ae2 that don't work. I am using
DataFormats.JSON.write(container)
andSponge.getDataManager().deserialize(ItemStack.class, DataFormats.JSON.read(json))
for serialization/deserialization.To Reproduce
(Make sure your inventory is empty before starting each test)
Test 1
Works normally
Test 2
Elite Combining Factory
in your inventoryWorks normally
Test 3
Elite Combining Factory
on the groundElite Combining Factory
in your inventoryDoes not work
Make TestJar This is the code I used to test this bug. Making an empty sponge project and just pasting this class in should work. Build and put in the server's mods folder.