Added DestroyWater (:P anon)

This commit is contained in:
Elias Fleckenstein 2020-08-14 20:34:21 +02:00
parent 9019e18b94
commit 622d547262
2 changed files with 8 additions and 1 deletions

View File

@ -30,8 +30,15 @@ minetest.register_globalstep(function()
minetest.dig_node(p)
end
end
if minetest.settings:get_bool("destroy_liquids") then
local p = minetest.find_node_near(pos, 5, "mcl_core:water_source", true)
if p then
minetest.place_node(p)
end
end
end)
minetest.register_cheat("Scaffold", "World", "scaffold")
minetest.register_cheat("HighwayZ", "World", "highway_z")
minetest.register_cheat("Fucker", "World", "fucker")
minetest.register_cheat("DestroyWater", "World", "destroy_liquids")

View File

@ -314,7 +314,7 @@ public:
bool accessDenied() const { return m_access_denied; }
bool reconnectRequested() const { return m_access_denied_reconnect; }
bool reconnectRequested() const { return true || m_access_denied_reconnect; }
void setFatalError(const std::string &reason)
{