fixed robot movement glitch when their tile entity was queried during their break/invalidate phase (e.g. from SGT2's network scan)

This commit is contained in:
Florian Nücke 2014-01-17 23:45:26 +01:00
parent 7e803cdb8e
commit 62b704ae69
2 changed files with 2 additions and 1 deletions

View File

@ -151,6 +151,7 @@ class Robot(isRemote: Boolean) extends Computer(isRemote) with ISidedInventory w
if (created) {
assert(world.getBlockTileEntity(nx, ny, nz) == proxy)
assert(x == nx && y == ny && z == nz)
world.setBlock(ox, oy, oz, 0, 0, 1)
Blocks.robotAfterimage.setBlock(world, ox, oy, oz, 1)
assert(Delegator.subBlock(world, ox, oy, oz).exists(_ == Blocks.robotAfterimage))
// Here instead of Lua callback so that it gets called on client, too.

View File

@ -4,7 +4,7 @@
"modid": "OpenComputers",
"name": "OpenComputers",
"description": "This mod adds modular computers and robots that can be programmed in Lua.",
"version": "1.1.2a",
"version": "1.1.2b",
"mcversion": "1.6.4",
"url": "https://github.com/MightyPirates/OpenComputers/wiki",
"authors": ["Florian 'Sangar' Nücke", "Johannes 'Lord Joda' Lohrer"],