Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 04:20:04 +01:00
32 Zeilen
1.4 KiB
Diff
32 Zeilen
1.4 KiB
Diff
|
From 6d3d278b13d8909db71e87a24af672d0227a0c4c Mon Sep 17 00:00:00 2001
|
||
|
From: Agaricus <agaricusb@yahoo.com>
|
||
|
Date: Sun, 13 Jan 2013 03:49:07 -0800
|
||
|
Subject: [PATCH 13/13] Fix mcRegion-to-Anvil conversion
|
||
|
|
||
|
---
|
||
|
src/main/java/net/minecraft/server/OldChunkLoader.java | 8 +++++---
|
||
|
1 file changed, 5 insertions(+), 3 deletions(-)
|
||
|
|
||
|
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);
|
||
|
}
|
||
|
}
|
||
|
--
|
||
|
1.8.1-rc2
|
||
|
|