Fix remove_node bug

This commit is contained in:
Joachim Stolberg 2020-12-12 11:22:30 +01:00
parent 7bf7ce09a3
commit 56923f623a
3 changed files with 5 additions and 4 deletions

View File

@ -228,15 +228,12 @@ end
-- Function removes the node from the techage lists.
function techage.remove_node(pos, oldnode, oldmetadata)
local number = oldmetadata and oldmetadata.fields and oldmetadata.fields.node_number or oldmetadata.fields.number
print("number1", dump(oldmetadata))
local number = oldmetadata and oldmetadata.fields and (oldmetadata.fields.node_number or oldmetadata.fields.number)
number = number or get_number(pos)
print("number2", number)
if number and tonumber(number) then
local key = minetest.hash_node_position(pos)
NumbersToBeRecycled[key] = number
NodeInfoCache[number] = nil
print("number3", number)
end
if oldnode and item_handling_node(oldnode.name) then
Tube:after_dig_node(pos)

View File

@ -627,6 +627,8 @@ Dazu müssen eine oder mehrere Knotennummern eingegeben und der Konverter mit Me
über Mesecons Leitungen verbunden werden. Den Mesecons Umsetzer kann man auch mit dem Programmer konfigurieren.
Der Mesecons Umsetzer akzeptiert bis zu 5 Kommandos pro Sekunde, bei höherer Belastung schaltet er sich ab.
**Dieser Block existiert aber nur, wenn die Mod mesecons aktiv ist!**
[ta3_mesecons_converter|image]

View File

@ -619,6 +619,8 @@ To do this, one or more node numbers must be entered and the converter with Mese
has to be connected via Mesecons cables. The Mesecons converter can also be configured with the programmer.
The Mesecons converter accepts up to 5 commands per second; it switches itself off at higher loads.
**This node only exists if the mod mesecons is active!**
[ta3_mesecons_converter|image]