Merge pull request #7 from oversword/issue-6

Update cache on node removal
This commit is contained in:
Joachim Stolberg 2021-01-17 14:23:59 +01:00 committed by GitHub
commit a8195c15ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -161,6 +161,8 @@ local function update_secondary_nodes_after_node_dug(self, pos, dirs)
tmp, npos = self:get_secondary_node(pos, dir)
end
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(pos, dir)
end