From 9d4d86136ece2e1fbd1a90ac2f3f854c12517937 Mon Sep 17 00:00:00 2001 From: cheapie Date: Tue, 2 Feb 2021 17:33:51 -0600 Subject: [PATCH] Improve EEPROM drop handling --- memory.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/memory.lua b/memory.lua index 8ceada8..e11f45d 100644 --- a/memory.lua +++ b/memory.lua @@ -94,7 +94,11 @@ minetest.register_node("digistuff:eeprom", { minetest.remove_node(pos) smeta:set_string("description","Digilines 128KBit EEPROM (with data)") local inv = minetest.get_inventory({type = "player",name = name,}) - inv:add_item("main",istack) + 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) + end digilines.update_autoconnect(pos) end, tiles = {