Starchasers / OCGlasses

mod for minecraft and addon for Open Computers
zlib License
30 stars 17 forks source link

[Bug] Computers can't load their state when a modifier is in a variable #98

Open djpadbit opened 3 years ago

djpadbit commented 3 years ago

Describe the bug As the title says, when a modifier is stored in a variable and the server restarted or when you reload the world the computer shuts down. I tried with the color modifier and the auto translation modifier and both do the same.

In which environment did the Bug appear? Singleplayer, Forge server

To Reproduce Steps to reproduce the behavior:

  1. On a computer in the lua interpreter type in something like the code snippet below
  2. Shut down the server or log out of the world
  3. Restart the server or come back into the world
  4. The computer will be turned off and some errors are going to be in the logs

Expected behavior The computer continues where it left off when reloading the world.

Screenshots / Code Snippet

g = component.glasses
g.removeAll()
t = g.addText2D()
t.addColor(1,1,1,1)
m = t.modifiers()[1]

Minecraft:

Additional context