2013-04-03 09:20:29 +02:00
|
|
|
From c2ff125b200c05d07496af538552e7ff72bacbfa Mon Sep 17 00:00:00 2001
|
2013-01-15 02:18:40 +01:00
|
|
|
From: Agaricus <agaricusb@yahoo.com>
|
|
|
|
Date: Sun, 13 Jan 2013 03:49:07 -0800
|
2013-01-19 09:22:25 +01:00
|
|
|
Subject: [PATCH] Fix mcRegion-to-Anvil conversion
|
2013-01-15 02:18:40 +01:00
|
|
|
|
|
|
|
---
|
2013-04-03 09:20:29 +02:00
|
|
|
.../java/net/minecraft/server/OldChunkLoader.java | 8 +++++---
|
|
|
|
1 files changed, 5 insertions(+), 3 deletions(-)
|
2013-01-15 02:18:40 +01:00
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/OldChunkLoader.java b/src/main/java/net/minecraft/server/OldChunkLoader.java
|
|
|
|
index 65b0b70..0b3bd0d 100644
|
|
|
|
--- a/src/main/java/net/minecraft/server/OldChunkLoader.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/OldChunkLoader.java
|
|
|
|
@@ -94,9 +94,11 @@ public class OldChunkLoader {
|
|
|
|
|
|
|
|
nbttagcompound1.setByte("Y", (byte) (k & 255));
|
|
|
|
nbttagcompound1.setByteArray("Blocks", abyte);
|
|
|
|
- nbttagcompound1.setByteArray("Data", nibblearray.a);
|
|
|
|
- nbttagcompound1.setByteArray("SkyLight", nibblearray1.a);
|
|
|
|
- nbttagcompound1.setByteArray("BlockLight", nibblearray2.a);
|
|
|
|
+ // Spigot start - a -> getValueArray() accessor
|
|
|
|
+ nbttagcompound1.setByteArray("Data", nibblearray.getValueArray());
|
|
|
|
+ nbttagcompound1.setByteArray("SkyLight", nibblearray1.getValueArray());
|
|
|
|
+ nbttagcompound1.setByteArray("BlockLight", nibblearray2.getValueArray());
|
|
|
|
+ // Spigot end
|
|
|
|
nbttaglist.add(nbttagcompound1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--
|
2013-04-03 09:20:29 +02:00
|
|
|
1.7.0.4
|
2013-01-15 02:18:40 +01:00
|
|
|
|