mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-24 22:14:32 +00:00
Fix errors in commands and getDimension->getId
This commit is contained in:
1 parent
c59caa4b92
commit
e3a931bf96
6 files changed
+13
-11
No files matched your search
@@ -75,7 +75,7 @@ public class WorldSpecificSaveHandler implements ISaveHandler
|
||||
File file = new File(dataDir, name + ".dat");
|
||||
if (!file.exists())
|
||||
{
|
||||
switch (world.provider.getDimension())
|
||||
switch (world.provider.getId())
|
||||
{
|
||||
case -1:
|
||||
if (name.equalsIgnoreCase("FORTRESS")) copyFile(name, file);
|
||||
|
||||
@@ -64,7 +64,7 @@ public class BlockSnapshot
|
||||
public BlockSnapshot(World world, BlockPos pos, IBlockState state, @Nullable NBTTagCompound nbt)
|
||||
{
|
||||
this.setWorld(world);
|
||||
this.dimId = world.provider.getDimension();
|
||||
this.dimId = world.provider.getId();
|
||||
this.pos = pos.toImmutable();
|
||||
this.setReplacedBlock(state);
|
||||
this.registryName = state.getBlock().getRegistryName();
|
||||
|
||||
Reference in new issue
Block a user