mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 02:21:06 +01:00
Plant placement and drop fixes
This commit is contained in:
parent
63b2da7aa0
commit
9e9507efeb
3 changed files with 6 additions and 4 deletions
|
@ -438,10 +438,11 @@ function mcl_util.generate_on_place_plant_function(condition)
|
|||
if not def_under or not def_above then
|
||||
return itemstack
|
||||
end
|
||||
if def_under.buildable_to then
|
||||
if def_under.buildable_to and def_under.name ~= itemstack:get_name() then
|
||||
place_pos = pointed_thing.under
|
||||
elseif def_above.buildable_to then
|
||||
elseif def_above.buildable_to and def_above.name ~= itemstack:get_name() then
|
||||
place_pos = pointed_thing.above
|
||||
pointed_thing.under = pointed_thing.above
|
||||
else
|
||||
return itemstack
|
||||
end
|
||||
|
|
|
@ -194,8 +194,8 @@ def_clover.mesh = "mcl_clover_3leaf.obj"
|
|||
def_clover.tiles = { "mcl_flowers_clover.png" }
|
||||
def_clover.inventory_image = "mcl_flowers_clover_inv.png"
|
||||
def_clover.wield_image = "mcl_flowers_clover_inv.png"
|
||||
def_clover.drop = nil
|
||||
def_clover.use_texture_alpha = "clip"
|
||||
def_clover.drop = "mcl_flowers:clover"
|
||||
def_clover.selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -4/16, -0.5, -4/16, 4/16, 0, 4/16 },
|
||||
|
@ -212,6 +212,7 @@ def_4l_clover.tiles = { "mcl_flowers_fourleaf_clover.png" }
|
|||
def_4l_clover.inventory_image = "mcl_flowers_fourleaf_clover_inv.png"
|
||||
def_4l_clover.wield_image = "mcl_flowers_fourleaf_clover_inv.png"
|
||||
def_4l_clover.use_texture_alpha = "clip"
|
||||
def_4l_clover.drop = "mcl_flowers:fourleaf_clover"
|
||||
|
||||
minetest.register_node("mcl_flowers:fourleaf_clover", def_4l_clover)
|
||||
|
||||
|
|
|
@ -1673,7 +1673,7 @@ function mcl_potions.make_invisible(obj_ref, hide)
|
|||
mcl_player.player_set_visibility(obj_ref, true)
|
||||
obj_ref:set_nametag_attributes({ color = { r = 255, g = 255, b = 255, a = 255 } })
|
||||
end
|
||||
else -- TODO make below section (and preferably other effects on mobs) rely on metadata
|
||||
else
|
||||
if hide then
|
||||
local luaentity = obj_ref:get_luaentity()
|
||||
EF.invisibility[obj_ref].old_size = luaentity.visual_size
|
||||
|
|
Loading…
Reference in a new issue