mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Merge pull request #2659 from kashike/feature/immutable-blockpos
Replace Forge's getImmutable method with the vanilla method
This commit is contained in:
commit
42e4d1fa77
4 files changed
+39
-61
No files matched your search
@@ -58,7 +58,7 @@ public class BlockSnapshot implements Serializable
|
||||
{
|
||||
this.setWorld(world);
|
||||
this.dimId = world.provider.getDimension();
|
||||
this.pos = pos.getImmutable();
|
||||
this.pos = pos.toImmutable();
|
||||
this.setReplacedBlock(state);
|
||||
this.registryName = new ResourceLocation(state.getBlock().getRegistryName());
|
||||
this.meta = state.getBlock().getMetaFromState(state);
|
||||
@@ -82,7 +82,7 @@ public class BlockSnapshot implements Serializable
|
||||
public BlockSnapshot(int dimension, BlockPos pos, String modId, String blockName, int meta, int flag, NBTTagCompound nbt)
|
||||
{
|
||||
this.dimId = dimension;
|
||||
this.pos = pos.getImmutable();
|
||||
this.pos = pos.toImmutable();
|
||||
this.setFlag(flag);
|
||||
this.registryName = new ResourceLocation(modId, blockName);
|
||||
this.meta = meta;
|
||||
|
||||
Reference in new issue
Block a user