Skip to content

Commit df6b54d

Browse files
committedOct 12, 2016
Fix blowing up TNT near worldedit markers
1 parent 5abe1ce commit df6b54d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

Diff for: ‎worldedit_commands/mark.lua

+5-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,11 @@ minetest.register_entity(":worldedit:region_cube", {
153153
end
154154
end,
155155
on_punch = function(self, hitter)
156-
for _, entity in ipairs(worldedit.marker_region[self.player_name]) do
156+
local markers = worldedit.marker_region[self.player_name]
157+
if not markers then
158+
return
159+
end
160+
for _, entity in ipairs(markers) do
157161
entity:remove()
158162
end
159163
worldedit.marker_region[self.player_name] = nil

0 commit comments

Comments
 (0)
Please sign in to comment.