ComputerCraft
ComputerCraft copied to clipboard
[WIP] Only instantiate ServerComputer on tile ticks
This implements a couple of the solutions proposed in #409 and #442. There are a couple of things to note:
- Fixes #442 (whilst #453 also fixes it, I believe the two together form a more complete solution).
- Appears to fix #409. I've been running this on Airwaves since the PR was created, and it seems to work.
- Calling
.getID()when the computer has no id will not allocate one. This is a regression from current behaviour, so it's worth discussing what the appropriate behaviour should be. This is pretty rare (it'll only ever happen within the first tick of a computer being placed), but should still be considered.
I'll remove the WIP mark once I've resolved the last point.