Skip to content

Commit

Permalink
didn't fully copy 2 things
Browse files Browse the repository at this point in the history
  • Loading branch information
birdlover32767 committed Apr 5, 2024
1 parent 1cbeb85 commit ad899de
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions mod.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name = warzone
depends = technic, default, moreores
optional_depends = areas, skybox, xp_redo, protector
5 changes: 3 additions & 2 deletions nodes.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local S = warzone.translator

-- special protection block for the stash
--[[ special protection block for the stash (SCRAPPED)
for _, state in pairs({"flowing", "source"}) do
minetest.register_node("warzone:radioactive_"..state, {
description = state == "source" and S("Radioactive Protection Source") or S("Flowing Radioactive Protection"),
Expand Down Expand Up @@ -61,4 +61,5 @@ for _, state in pairs({"flowing", "source"}) do
not_in_creative_inventory = (state == "flowing" and 1 or nil),
},
})
end
end
]]--
4 changes: 2 additions & 2 deletions protector.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ local max_y = warzone.y_start + warzone.y_height
local old_is_protected = minetest.is_protected

function minetest.is_protected(pos, digger)
if pos.y > min_y and pos.y < max_y then
if pos.y >= min_y and pos.y <= max_y then
-- no protection in warzone
return false
end

return old_is_protected(pos, digger)
end
end

0 comments on commit ad899de

Please sign in to comment.