Minor changes and fixes
@ -106,7 +106,8 @@ function bucket.register_liquid(source, flowing, itemname, inventory_image, name
|
||||
if source == "default:lava_source" then
|
||||
minetest.chat_send_player(player_name, S("Too much Lava is bad, right?"))
|
||||
return itemstack
|
||||
elseif height > 64 then
|
||||
elseif height > 64 or
|
||||
minetest.get_node({x = lpos.x, y = lpos.y - 1, z = lpos.z}).name == "air" then
|
||||
minetest.chat_send_player(player_name, S("Too much liquid is bad, right?"))
|
||||
return itemstack
|
||||
elseif source == "default:water_source" then
|
||||
|
Before Width: | Height: | Size: 403 B After Width: | Height: | Size: 398 B |
Before Width: | Height: | Size: 377 B After Width: | Height: | Size: 384 B |
Before Width: | Height: | Size: 439 B After Width: | Height: | Size: 426 B |
Before Width: | Height: | Size: 402 B After Width: | Height: | Size: 402 B |
@ -432,6 +432,8 @@ pep.moles = {}
|
||||
|
||||
function pep.moledig(playername)
|
||||
local player = minetest.get_player_by_name(playername)
|
||||
if not player then return end
|
||||
|
||||
local dir = minetest.yaw_to_dir(player:get_look_horizontal())
|
||||
local pos = vector.round(player:get_pos())
|
||||
|
||||
|
@ -113,7 +113,7 @@ function playereffects.apply_effect_type(effect_type_id, duration, player, repea
|
||||
local biggest_hudpos = -1
|
||||
local free_hudpos
|
||||
|
||||
local hudinfos = playereffects.hudinfos[playername]
|
||||
local hudinfos = playereffects.hudinfos[playername] or {}
|
||||
for _, hudinfo in pairs(hudinfos) do
|
||||
local hudpos = hudinfo.pos
|
||||
if hudpos > biggest_hudpos then
|
||||
|