1
0
miroir de https://github.com/Uberi/Minetest-WorldEdit.git synchronisé 2025-10-17 16:15:27 +02:00

Fix //load with 0 nodes (#177)

Cette révision appartient à :
TalkLounge
2019-06-15 16:46:12 +02:00
révisé par sfan5
Parent d1cbd420bb
révision b2e086f9ec

Voir le fichier

@@ -227,6 +227,7 @@ end
function worldedit.deserialize(origin_pos, value)
local nodes = load_schematic(value)
if not nodes then return nil end
if #nodes == 0 then return #nodes end
local pos1, pos2 = worldedit.allocate_with_nodes(origin_pos, nodes)
worldedit.keep_loaded(pos1, pos2)