[ci skip] Replace some magic values with constant references
This commit is contained in:
parent
0f3d126ce1
commit
635ece80cf
10 changed files with 17 additions and 17 deletions
|
@ -8574,7 +8574,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ try {
|
||||
+ data = data.copy(); // coming from the I/O thread, so we need to copy
|
||||
+ // run converters
|
||||
+ final int dataVersion = !data.contains(SharedConstants.DATA_VERSION_TAG, 99) ? 1945 : data.getInt(SharedConstants.DATA_VERSION_TAG);
|
||||
+ final int dataVersion = !data.contains(SharedConstants.DATA_VERSION_TAG, net.minecraft.nbt.Tag.TAG_ANY_NUMERIC) ? 1945 : data.getInt(SharedConstants.DATA_VERSION_TAG);
|
||||
+ final CompoundTag converted = MCDataConverter.convertTag(
|
||||
+ MCTypeRegistry.POI_CHUNK, data, dataVersion, SharedConstants.getCurrentVersion().getDataVersion().getVersion()
|
||||
+ );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue