Fix errors in commands and getDimension->getId

This commit is contained in:
tterrag committed 2018-09-15 15:02:38 -04:00
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();