forked from Mirrorlandia_minetest/digistuff
Improve EEPROM drop handling
This commit is contained in:
parent
fae9422116
commit
9d4d86136e
@ -94,7 +94,11 @@ minetest.register_node("digistuff:eeprom", {
|
|||||||
minetest.remove_node(pos)
|
minetest.remove_node(pos)
|
||||||
smeta:set_string("description","Digilines 128KBit EEPROM (with data)")
|
smeta:set_string("description","Digilines 128KBit EEPROM (with data)")
|
||||||
local inv = minetest.get_inventory({type = "player",name = name,})
|
local inv = minetest.get_inventory({type = "player",name = name,})
|
||||||
|
if player.is_fake_player or not inv:room_for_item("main",istack) then
|
||||||
|
minetest.handle_node_drops(pos,{istack},player)
|
||||||
|
else
|
||||||
inv:add_item("main",istack)
|
inv:add_item("main",istack)
|
||||||
|
end
|
||||||
digilines.update_autoconnect(pos)
|
digilines.update_autoconnect(pos)
|
||||||
end,
|
end,
|
||||||
tiles = {
|
tiles = {
|
||||||
|
Loading…
Reference in New Issue
Block a user