mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 04:21:07 +01:00
Remove a couple of FIXMEs and legacy
This commit is contained in:
parent
6d5bfacb8c
commit
7b24ede582
4 changed files with 2 additions and 16 deletions
|
@ -166,9 +166,6 @@ local dispenserdef = {
|
||||||
local dropinv = dropmeta:get_inventory()
|
local dropinv = dropmeta:get_inventory()
|
||||||
if dropinv:room_for_item(armor_type, dropitem) then
|
if dropinv:room_for_item(armor_type, dropitem) then
|
||||||
dropinv:add_item(armor_type, dropitem)
|
dropinv:add_item(armor_type, dropitem)
|
||||||
--[[ FIXME: For some reason, this function is not called after calling add_item,
|
|
||||||
so we call it manually to update the armor stand entity.
|
|
||||||
This may need investigation and the following line may be a small hack. ]]
|
|
||||||
minetest.registered_nodes["3d_armor_stand:armor_stand"].on_metadata_inventory_put(standpos)
|
minetest.registered_nodes["3d_armor_stand:armor_stand"].on_metadata_inventory_put(standpos)
|
||||||
stack:take_item()
|
stack:take_item()
|
||||||
inv:set_stack("main", stack_id, stack)
|
inv:set_stack("main", stack_id, stack)
|
||||||
|
|
|
@ -39,7 +39,7 @@ local melon_base_def = {
|
||||||
-- Drop proabilities for melon stem
|
-- Drop proabilities for melon stem
|
||||||
local stem_drop = {
|
local stem_drop = {
|
||||||
max_items = 1,
|
max_items = 1,
|
||||||
-- FIXME: The probabilities are slightly off from the original.
|
-- The probabilities are slightly off from the original.
|
||||||
-- Update this drop list when the Minetest drop probability system
|
-- Update this drop list when the Minetest drop probability system
|
||||||
-- is more powerful.
|
-- is more powerful.
|
||||||
items = {
|
items = {
|
||||||
|
|
|
@ -15,7 +15,7 @@ minetest.register_craftitem("mcl_farming:pumpkin_seeds", {
|
||||||
|
|
||||||
local stem_drop = {
|
local stem_drop = {
|
||||||
max_items = 1,
|
max_items = 1,
|
||||||
-- FIXME: The probabilities are slightly off from the original.
|
-- The probabilities are slightly off from the original.
|
||||||
-- Update this drop list when the Minetest drop probability system
|
-- Update this drop list when the Minetest drop probability system
|
||||||
-- is more powerful.
|
-- is more powerful.
|
||||||
items = {
|
items = {
|
||||||
|
|
|
@ -209,17 +209,6 @@ minetest.register_abm({
|
||||||
interval = 1,
|
interval = 1,
|
||||||
chance = 1,
|
chance = 1,
|
||||||
action = function(pos, node)
|
action = function(pos, node)
|
||||||
-- Destroy legacy end portals created with quartz block frame
|
|
||||||
-- by turning them into cobwebs.
|
|
||||||
-- We can tell if a end portal is legacy if it has portal_target as metadata.
|
|
||||||
-- FIXME: Remove this after some time.
|
|
||||||
local meta = minetest.get_meta(pos)
|
|
||||||
local legacy_portal_target = meta:get_string("portal_frame1")
|
|
||||||
if legacy_portal_target and legacy_portal_target ~= "" then
|
|
||||||
minetest.set_node(pos, {name="mcl_core:cobweb"})
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
for _,obj in ipairs(minetest.get_objects_inside_radius(pos, 1)) do
|
for _,obj in ipairs(minetest.get_objects_inside_radius(pos, 1)) do
|
||||||
local lua_entity = obj:get_luaentity() --maikerumine added for objects to travel
|
local lua_entity = obj:get_luaentity() --maikerumine added for objects to travel
|
||||||
if obj:is_player() or lua_entity then
|
if obj:is_player() or lua_entity then
|
||||||
|
|
Loading…
Reference in a new issue