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) {
|
if (sectionPalettes != null) {
|
||||||
copy.sectionPalettes = new BlockStateContainer[16];
|
copy.sectionPalettes = new BlockStateContainer[16];
|
||||||
try {
|
try {
|
||||||
Field fieldBits = BlockStateContainer.class.getDeclaredField("storage");
|
Field fieldBits = BlockStateContainer.class.getDeclaredField("field_186021_b");
|
||||||
fieldBits.setAccessible(true);
|
fieldBits.setAccessible(true);
|
||||||
Field fieldPalette = BlockStateContainer.class.getDeclaredField("palette");
|
Field fieldPalette = BlockStateContainer.class.getDeclaredField("field_186022_c");
|
||||||
fieldPalette.setAccessible(true);
|
fieldPalette.setAccessible(true);
|
||||||
Field fieldSize = BlockStateContainer.class.getDeclaredField("bits");
|
Field fieldSize = BlockStateContainer.class.getDeclaredField("field_186024_e");
|
||||||
fieldSize.setAccessible(true);
|
fieldSize.setAccessible(true);
|
||||||
for (int i = 0; i < sectionPalettes.length; i++) {
|
for (int i = 0; i < sectionPalettes.length; i++) {
|
||||||
BlockStateContainer current = sectionPalettes[i];
|
BlockStateContainer current = sectionPalettes[i];
|
||||||
|
@ -74,11 +74,11 @@ public class ForgeChunk_All extends CharFaweChunk<Chunk, ForgeQueue_All> {
|
|||||||
if (sectionPalettes != null) {
|
if (sectionPalettes != null) {
|
||||||
copy.sectionPalettes = new BlockStateContainer[16];
|
copy.sectionPalettes = new BlockStateContainer[16];
|
||||||
try {
|
try {
|
||||||
Field fieldBits = BlockStateContainer.class.getDeclaredField("storage");
|
Field fieldBits = BlockStateContainer.class.getDeclaredField("field_186021_b");
|
||||||
fieldBits.setAccessible(true);
|
fieldBits.setAccessible(true);
|
||||||
Field fieldPalette = BlockStateContainer.class.getDeclaredField("palette");
|
Field fieldPalette = BlockStateContainer.class.getDeclaredField("field_186022_c");
|
||||||
fieldPalette.setAccessible(true);
|
fieldPalette.setAccessible(true);
|
||||||
Field fieldSize = BlockStateContainer.class.getDeclaredField("bits");
|
Field fieldSize = BlockStateContainer.class.getDeclaredField("field_186024_e");
|
||||||
fieldSize.setAccessible(true);
|
fieldSize.setAccessible(true);
|
||||||
for (int i = 0; i < sectionPalettes.length; i++) {
|
for (int i = 0; i < sectionPalettes.length; i++) {
|
||||||
BlockStateContainer current = sectionPalettes[i];
|
BlockStateContainer current = sectionPalettes[i];
|
||||||
|
@ -70,11 +70,11 @@ public class ForgeChunk_All extends CharFaweChunk<Chunk, ForgeQueue_All> {
|
|||||||
if (sectionPalettes != null) {
|
if (sectionPalettes != null) {
|
||||||
copy.sectionPalettes = new BlockStateContainer[16];
|
copy.sectionPalettes = new BlockStateContainer[16];
|
||||||
try {
|
try {
|
||||||
Field fieldBits = BlockStateContainer.class.getDeclaredField("storage");
|
Field fieldBits = BlockStateContainer.class.getDeclaredField("field_186021_b");
|
||||||
fieldBits.setAccessible(true);
|
fieldBits.setAccessible(true);
|
||||||
Field fieldPalette = BlockStateContainer.class.getDeclaredField("palette");
|
Field fieldPalette = BlockStateContainer.class.getDeclaredField("field_186022_c");
|
||||||
fieldPalette.setAccessible(true);
|
fieldPalette.setAccessible(true);
|
||||||
Field fieldSize = BlockStateContainer.class.getDeclaredField("bits");
|
Field fieldSize = BlockStateContainer.class.getDeclaredField("field_186024_e");
|
||||||
fieldSize.setAccessible(true);
|
fieldSize.setAccessible(true);
|
||||||
for (int i = 0; i < sectionPalettes.length; i++) {
|
for (int i = 0; i < sectionPalettes.length; i++) {
|
||||||
BlockStateContainer current = sectionPalettes[i];
|
BlockStateContainer current = sectionPalettes[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user