Fixes Fixes Fixes

master
LoneWolfHT 2020-04-23 14:52:28 -07:00
parent 492dad1e07
commit 569b4ffbd7
3 changed files with 6 additions and 3 deletions

View File

@ -27,8 +27,11 @@ minetest.register_globalstep(function(dtime)
local dropint = main.current_mode.mode.drop_interval
local online_players = #minetest.get_connected_players()
local playercount_reduction = (online_players * 5)
if dropint and dropstep >= dropint - (online_players * 2) and online_players >= 1 then
if playercount_reduction > 15 then playercount_reduction = 15 end
if dropint and dropstep >= dropint - playercount_reduction and online_players >= 1 then
dropstep = 0
main.spawn_rand_drop()

View File

@ -145,7 +145,7 @@ function maps.save_map(pname, mname, creator, skybox, modes)
if r then
minetest.set_player_privs(pname, editors[pname].privs)
player:get_inventory():remove_item("main", "superpick:pick")
minetest.get_player_by_name(pname):get_inventory():remove_item("main", "superpick:pick")
return true, "Saved map!"
end

View File

@ -20,7 +20,7 @@ for name, def in pairs(minetest.registered_nodes) do
newdef.damage_per_second = 100
end
if name:find("source") then
if name:find("source") or name:find("flowing") then
newdef.liquid_range = 0
end