1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-12-23 01:55:27 +01:00

update worldedit and fix a possible hack

This commit is contained in:
BUISSON-DEBON Quentin
2017-05-14 22:41:16 +02:00
parent 9ff9dfd76a
commit 8cf808ea83
23 changed files with 1074 additions and 188 deletions

6
mods/WorldEdit/worldedit/serialization.lua Executable file → Normal file
View File

@@ -144,9 +144,9 @@ local function load_schematic(value)
"([^%s]+)%s+(%d+)%s+(%d+)[^\r\n]*[\r\n]*") do
param1, param2 = tonumber(param1), tonumber(param2)
table.insert(nodes, {
x = originx + tonumber(x),
y = originy + tonumber(y),
z = originz + tonumber(z),
x = tonumber(x),
y = tonumber(y),
z = tonumber(z),
name = name,
param1 = param1 ~= 0 and param1 or nil,
param2 = param2 ~= 0 and param2 or nil,