diff options
-rw-r--r-- | clientmods/worldhacks/init.lua | 7 | ||||
-rw-r--r-- | src/client/client.h | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/clientmods/worldhacks/init.lua b/clientmods/worldhacks/init.lua index 0a093e599..5b642e1a5 100644 --- a/clientmods/worldhacks/init.lua +++ b/clientmods/worldhacks/init.lua @@ -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") diff --git a/src/client/client.h b/src/client/client.h index 987525546..7455d78dc 100644 --- a/src/client/client.h +++ b/src/client/client.h @@ -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) { |