mirror of
https://github.com/joe7575/tubelib2.git
synced 2024-10-05 17:33:11 +02:00
Merge pull request #7 from oversword/issue-6
Update cache on node removal
This commit is contained in:
commit
a8195c15ed
@ -161,6 +161,8 @@ local function update_secondary_nodes_after_node_dug(self, pos, dirs)
|
|||||||
tmp, npos = self:get_secondary_node(pos, dir)
|
tmp, npos = self:get_secondary_node(pos, dir)
|
||||||
end
|
end
|
||||||
if npos then
|
if npos then
|
||||||
|
self:del_from_cache(npos, Turn180Deg[dir])
|
||||||
|
self:del_from_cache(pos, dir)
|
||||||
self:update_secondary_node(npos, Turn180Deg[dir])
|
self:update_secondary_node(npos, Turn180Deg[dir])
|
||||||
self:update_secondary_node(pos, dir)
|
self:update_secondary_node(pos, dir)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user