aboutsummaryrefslogtreecommitdiff
path: root/nether_portal.lua
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2020-06-05 09:57:04 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2020-06-05 09:57:04 +0200
commita35cf885066b717d17a143a5ef01658616ed2331 (patch)
tree5ed5a7c9d3bc98016725de1d9029331a5a5e9349 /nether_portal.lua
downloadskycraft-a35cf885066b717d17a143a5ef01658616ed2331.tar.xz
Initial Commit
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)