aboutsummaryrefslogtreecommitdiff
path: root/nether_portal.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nether_portal.lua')
-rw-r--r--nether_portal.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/nether_portal.lua b/nether_portal.lua
new file mode 100644
index 0000000..1c3dc0b
--- /dev/null
+++ b/nether_portal.lua
@@ -0,0 +1,10 @@
+minetest.register_on_mods_loaded(function()
+ local old_light_nether_portal = mcl_portals.light_nether_portal
+ function mcl_portals.light_nether_portal(pos)
+ if mcl_worlds.pos_to_dimension(pos) == "nether" then
+ return false
+ else
+ return old_light_nether_portal(pos)
+ end
+ end
+end)