4 Commits
v1 ... v1.1

Author SHA1 Message Date
b49f4ce73d Fix error caused by teleporting offline players (#12) 2020-01-08 18:56:49 +01:00
6551f5c120 Convert UTF-8 + BOM to UTF-8. Fixes crash on some systems 2019-08-01 18:25:25 +02:00
b8dab52e41 Unroll 32affba6 (stairs) (#9)
32affba6 re-registered stairs which have already been registered 20 lines earlier in the code, and registered them as "brick" causing the netherbrick stairs to replace Minetest's default:brick stairs. The rest of 32affba6 was already unrolled in 7a0e52da, but the stairs bug remained.
2019-07-20 08:56:32 +02:00
bf145d4c11 Fix portal particle spawners
Issue introduced in 0b6925f4b1. Fix tested in 4.17.1 and 5.1-dev
2019-06-26 19:04:02 -07:00

View File

@ -1,4 +1,3 @@
--[[ --[[
Nether mod for minetest Nether mod for minetest
@ -269,20 +268,20 @@ minetest.register_abm({
chance = 2, chance = 2,
action = function(pos, node) action = function(pos, node)
minetest.add_particlespawner({ minetest.add_particlespawner({
32, --amount amount = 32,
4, --time time = 4,
{x = pos.x - 0.25, y = pos.y - 0.25, z = pos.z - 0.25}, --minpos minpos = {x = pos.x - 0.25, y = pos.y - 0.25, z = pos.z - 0.25},
{x = pos.x + 0.25, y = pos.y + 0.25, z = pos.z + 0.25}, --maxpos maxpos = {x = pos.x + 0.25, y = pos.y + 0.25, z = pos.z + 0.25},
{x = -0.8, y = -0.8, z = -0.8}, --minvel minvel = {x = -0.8, y = -0.8, z = -0.8},
{x = 0.8, y = 0.8, z = 0.8}, --maxvel maxvel = {x = 0.8, y = 0.8, z = 0.8},
{x = 0, y = 0, z = 0}, --minacc minacc = {x = 0, y = 0, z = 0},
{x = 0, y = 0, z = 0}, --maxacc maxacc = {x = 0, y = 0, z = 0},
0.5, --minexptime minexptime = 0.5,
1, --maxexptime maxexptime = 1,
1, --minsize minsize = 1,
2, --maxsize maxsize = 2,
false, --collisiondetection collisiondetection = false,
"nether_particle.png" --texture texture = "nether_particle.png"
}) })
for _, obj in ipairs(minetest.get_objects_inside_radius(pos, 1)) do for _, obj in ipairs(minetest.get_objects_inside_radius(pos, 1)) do
if obj:is_player() then if obj:is_player() then
@ -298,6 +297,9 @@ minetest.register_abm({
-- teleport the player -- teleport the player
minetest.after(3, function(o, p, t) minetest.after(3, function(o, p, t)
local objpos = o:getpos() local objpos = o:getpos()
if not objpos then -- player quit the game while teleporting
return
end
objpos.y = objpos.y + 0.1 -- Fix some glitches at -8000 objpos.y = objpos.y + 0.1 -- Fix some glitches at -8000
if minetest.get_node(objpos).name ~= "nether:portal" then if minetest.get_node(objpos).name ~= "nether:portal" then
return return
@ -520,13 +522,6 @@ if minetest.get_modpath("moreblocks") then
}) })
end end
stairs.register_stair_and_slab("brick", "nether:brick",
{cracky=3, oddly_breakable_by_hand=1},
{"nether_brick.png"},
"nether stair",
"nether slab",
default.node_sound_stone_defaults())
-- Craftitems -- Craftitems