diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-03-19 20:13:05 +0100 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-03-19 20:13:05 +0100 |
commit | 1635c696de75e17adaeee65531fa9b864542cca8 (patch) | |
tree | fbea00253179bfb2e11d5a8899071cbc191091ab /MCServer/Plugins/Debuggers/Debuggers.lua | |
parent | Added unreachable lines backit prtected by preprocessor guards (diff) | |
parent | APIDump: Reformatted the plugin to avoid all ZBS Analyzer issues. (diff) | |
download | cuberite-1635c696de75e17adaeee65531fa9b864542cca8.tar cuberite-1635c696de75e17adaeee65531fa9b864542cca8.tar.gz cuberite-1635c696de75e17adaeee65531fa9b864542cca8.tar.bz2 cuberite-1635c696de75e17adaeee65531fa9b864542cca8.tar.lz cuberite-1635c696de75e17adaeee65531fa9b864542cca8.tar.xz cuberite-1635c696de75e17adaeee65531fa9b864542cca8.tar.zst cuberite-1635c696de75e17adaeee65531fa9b864542cca8.zip |
Diffstat (limited to 'MCServer/Plugins/Debuggers/Debuggers.lua')
-rw-r--r-- | MCServer/Plugins/Debuggers/Debuggers.lua | 4 |
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") |