forked from mirrors/NBTExplorer
Fixed bug in region loader that incorrectly tries to pad out non-multiple-of-4KB files.
This commit is contained in:
parent
afae126fb0
commit
51511529ba
1 changed files with 1 additions and 0 deletions
|
@ -127,6 +127,7 @@ namespace Substrate.Core
|
|||
|
||||
if ((file.Length & 0xfff) != 0) {
|
||||
/* the file size is not a multiple of 4KB, grow it */
|
||||
file.Seek(0, SeekOrigin.End);
|
||||
for (int i = 0; i < (file.Length & 0xfff); ++i) {
|
||||
file.WriteByte(0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue