Minor changes and fixes

This commit is contained in:
Maksim 2020-06-21 13:21:45 +02:00
parent 62fde23d30
commit 420c804995
7 changed files with 5 additions and 2 deletions

View File

@ -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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 403 B

After

Width:  |  Height:  |  Size: 398 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 377 B

After

Width:  |  Height:  |  Size: 384 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 439 B

After

Width:  |  Height:  |  Size: 426 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 402 B

After

Width:  |  Height:  |  Size: 402 B

View File

@ -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())

View File

@ -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