fixes #499 - forge undo nbt

This commit is contained in:
Jesse Boyd 2017-04-20 16:27:05 +10:00
parent 86a6a95f63
commit e37e94d674
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
3 changed files with 9 additions and 9 deletions

View File

@ -70,11 +70,11 @@ public class ForgeChunk_All extends CharFaweChunk<Chunk, ForgeQueue_All> {
if (sectionPalettes != null) {
copy.sectionPalettes = new BlockStateContainer[16];
try {
Field fieldBits = BlockStateContainer.class.getDeclaredField("storage");
Field fieldBits = BlockStateContainer.class.getDeclaredField("field_186021_b");
fieldBits.setAccessible(true);
Field fieldPalette = BlockStateContainer.class.getDeclaredField("palette");
Field fieldPalette = BlockStateContainer.class.getDeclaredField("field_186022_c");
fieldPalette.setAccessible(true);
Field fieldSize = BlockStateContainer.class.getDeclaredField("bits");
Field fieldSize = BlockStateContainer.class.getDeclaredField("field_186024_e");
fieldSize.setAccessible(true);
for (int i = 0; i < sectionPalettes.length; i++) {
BlockStateContainer current = sectionPalettes[i];

View File

@ -74,11 +74,11 @@ public class ForgeChunk_All extends CharFaweChunk<Chunk, ForgeQueue_All> {
if (sectionPalettes != null) {
copy.sectionPalettes = new BlockStateContainer[16];
try {
Field fieldBits = BlockStateContainer.class.getDeclaredField("storage");
Field fieldBits = BlockStateContainer.class.getDeclaredField("field_186021_b");
fieldBits.setAccessible(true);
Field fieldPalette = BlockStateContainer.class.getDeclaredField("palette");
Field fieldPalette = BlockStateContainer.class.getDeclaredField("field_186022_c");
fieldPalette.setAccessible(true);
Field fieldSize = BlockStateContainer.class.getDeclaredField("bits");
Field fieldSize = BlockStateContainer.class.getDeclaredField("field_186024_e");
fieldSize.setAccessible(true);
for (int i = 0; i < sectionPalettes.length; i++) {
BlockStateContainer current = sectionPalettes[i];

View File

@ -70,11 +70,11 @@ public class ForgeChunk_All extends CharFaweChunk<Chunk, ForgeQueue_All> {
if (sectionPalettes != null) {
copy.sectionPalettes = new BlockStateContainer[16];
try {
Field fieldBits = BlockStateContainer.class.getDeclaredField("storage");
Field fieldBits = BlockStateContainer.class.getDeclaredField("field_186021_b");
fieldBits.setAccessible(true);
Field fieldPalette = BlockStateContainer.class.getDeclaredField("palette");
Field fieldPalette = BlockStateContainer.class.getDeclaredField("field_186022_c");
fieldPalette.setAccessible(true);
Field fieldSize = BlockStateContainer.class.getDeclaredField("bits");
Field fieldSize = BlockStateContainer.class.getDeclaredField("field_186024_e");
fieldSize.setAccessible(true);
for (int i = 0; i < sectionPalettes.length; i++) {
BlockStateContainer current = sectionPalettes[i];