Fixed orientation and transient doors
This commit is contained in:
@@ -424,9 +424,10 @@ public abstract class BaseDimDoor extends BlockDoor implements IDimDoor, ITileEn
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initDoorTE(World world, int x, int y, int z)
|
||||
public TileEntity initDoorTE(World world, int x, int y, int z)
|
||||
{
|
||||
TileEntity te = this.createNewTileEntity(world);
|
||||
world.setBlockTileEntity(x, y, z, te);
|
||||
return te;
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
package StevenDimDoors.mod_pocketDim.blocks;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public interface IDimDoor
|
||||
@@ -11,5 +12,5 @@ public interface IDimDoor
|
||||
|
||||
public int getDrops();
|
||||
|
||||
public void initDoorTE(World world, int x, int y, int z);
|
||||
public TileEntity initDoorTE(World world, int x, int y, int z);
|
||||
}
|
||||
|
||||
@@ -120,9 +120,10 @@ public class TransTrapdoor extends BlockTrapDoor implements IDimDoor, ITileEntit
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initDoorTE(World world, int x, int y, int z)
|
||||
public TileEntity initDoorTE(World world, int x, int y, int z)
|
||||
{
|
||||
TileEntity te = this.createNewTileEntity(world);
|
||||
world.setBlockTileEntity(x, y, z, te);
|
||||
return te;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user