summaryrefslogtreecommitdiffstats
path: root/MCServer
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-03-18 13:54:32 +0100
committermadmaxoft <github@xoft.cz>2014-03-18 13:54:32 +0100
commit38aad32a8b92a0189483f0f61a42660ee31a835c (patch)
tree7098a45d2c940af70da87150c218465b559ee187 /MCServer
parentFixed cGZipFile::ReadRestOfFile returning incorrect value. (diff)
downloadcuberite-38aad32a8b92a0189483f0f61a42660ee31a835c.tar
cuberite-38aad32a8b92a0189483f0f61a42660ee31a835c.tar.gz
cuberite-38aad32a8b92a0189483f0f61a42660ee31a835c.tar.bz2
cuberite-38aad32a8b92a0189483f0f61a42660ee31a835c.tar.lz
cuberite-38aad32a8b92a0189483f0f61a42660ee31a835c.tar.xz
cuberite-38aad32a8b92a0189483f0f61a42660ee31a835c.tar.zst
cuberite-38aad32a8b92a0189483f0f61a42660ee31a835c.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/Debuggers/Debuggers.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/MCServer/Plugins/Debuggers/Debuggers.lua b/MCServer/Plugins/Debuggers/Debuggers.lua
index d2c9a2a49..fe3efa306 100644
--- a/MCServer/Plugins/Debuggers/Debuggers.lua
+++ b/MCServer/Plugins/Debuggers/Debuggers.lua
@@ -217,7 +217,7 @@ function TestBlockAreasString()
return
end
cFile:CreateFolder("schematics")
- local f = io.open("schematics/StringTest.schematic", "w")
+ local f = io.open("schematics/StringTest.schematic", "wb")
f:write(Data)
f:close()
@@ -230,7 +230,7 @@ function TestBlockAreasString()
BA2:Clear()
-- Load another area from a string in that file:
- f = io.open("schematics/StringTest.schematic", "r")
+ f = io.open("schematics/StringTest.schematic", "rb")
Data = f:read("*all")
if not(BA2:LoadFromSchematicString(Data)) then
LOG("Cannot load schematic from string")