summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2014-07-23 10:00:13 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2014-07-23 10:00:13 -0400
commit29c7ff5228864bcf5456f391b122c9eb477c754b (patch)
tree9e7f592ec9c70e82919ad80f07081eeac7e37b7b
parentad0c310b6b0f9d16d5bb703b444fb12e55af0629 (diff)
don't attempt to force-load blocks if they're already loaded.
-rw-r--r--technic/machines/switching_station.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/technic/machines/switching_station.lua b/technic/machines/switching_station.lua
index 0040f13..6b59277 100644
--- a/technic/machines/switching_station.lua
+++ b/technic/machines/switching_station.lua
@@ -80,6 +80,7 @@ local add_new_cable_node = function(nodes, pos)
end
local load_position = function(pos)
+ if minetest.get_node_or_nil(pos) then return end
local vm = VoxelManip()
local MinEdge, MaxEdge = vm:read_from_map(pos, pos)
end