mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-24 19:46:34 +01:00
fixes #499 - forge undo nbt
This commit is contained in:
parent
86a6a95f63
commit
e37e94d674
@ -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];
|
||||
|
@ -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];
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user