mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-26 23:13:07 +00:00
Switch from deprecated getTile() to tile()
This commit is contained in:
1 parent
deda9e0d1c
commit
ebaafb1f97
3 files changed
+4
-4
No files matched your search
@@ -29,7 +29,7 @@ public abstract class McSidedMetaPart extends McMetaPart implements TFacePart
|
||||
|
||||
public boolean canStay()
|
||||
{
|
||||
BlockCoord pos = new BlockCoord(getTile()).offset(sideForMeta(meta));
|
||||
BlockCoord pos = new BlockCoord(tile()).offset(sideForMeta(meta));
|
||||
return world().isBlockSolidOnSide(pos.x, pos.y, pos.z, ForgeDirection.getOrientation(sideForMeta(meta)^1));
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ public abstract class McSidedMetaPart extends McMetaPart implements TFacePart
|
||||
|
||||
public void drop()
|
||||
{
|
||||
TileMultipart.dropItem(new ItemStack(getBlock()), world(), Vector3.fromTileEntityCenter(getTile()));
|
||||
TileMultipart.dropItem(new ItemStack(getBlock()), world(), Vector3.fromTileEntityCenter(tile()));
|
||||
tile().remPart(this);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user