diff options
author | cheapie <no-email-for-you@example.com> | 2021-02-02 17:33:51 -0600 |
---|---|---|
committer | cheapie <no-email-for-you@example.com> | 2021-02-02 17:33:51 -0600 |
commit | 9d4d86136ece2e1fbd1a90ac2f3f854c12517937 (patch) | |
tree | 82784d8f43021bf3757f7b7f59d7ef1a35a037d8 | |
parent | fae9422116e7d27798a0fe2c0fb28a9c120a3cde (diff) | |
download | digistuff-9d4d86136ece2e1fbd1a90ac2f3f854c12517937.tar digistuff-9d4d86136ece2e1fbd1a90ac2f3f854c12517937.tar.gz digistuff-9d4d86136ece2e1fbd1a90ac2f3f854c12517937.tar.bz2 digistuff-9d4d86136ece2e1fbd1a90ac2f3f854c12517937.tar.xz digistuff-9d4d86136ece2e1fbd1a90ac2f3f854c12517937.zip |
Improve EEPROM drop handling
-rw-r--r-- | memory.lua | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 = { |