SwitchCraftCC / sc-peripherals

Custom peripherals for the SwitchCraft server
MIT License
10 stars 9 forks source link

Additional lightWhenOff and lightWhenOn NBT Data after placing and breaking old prints causes them to not stack #42

Closed creeloper27 closed 8 months ago

creeloper27 commented 8 months ago

This is probably related to #41 but seems like a different problem.

While investigating #41 I realized that my old (created a few months ago) 3d prints get additional NBT data after I place and break them, this causes them to not stack with my old ones that I never placed.

The reason seems to be some addional NBT Data lightWhenOff and lightWhenOn that gets added to the prints after I place and break them.

Example: black.3dj

{
    "label": "black",
    "isButton": false,
    "collideWhenOn": true,
    "collideWhenOff": true,
    "lightLevel": 0,
    "redstoneLevel": 0,
    "shapesOff": [
        { "bounds": [0,0,0,16,16,16], "texture": "sc-peripherals:block/white", "tint": "000000"}
    ],
    "shapesOn": []
}

old black.3dj print (from a few months ago) that never got placed: image

old black.3dj print (from a few months ago) that I placed and broke a few minutes ago: image

Lemmmy commented 8 months ago

Duplicate of #41