mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-20 04:09:45 +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
@@ -142,7 +142,7 @@ public class ButtonPart extends McSidedMetaPart implements IFaceRedstonePart
|
||||
private void updateState()
|
||||
{
|
||||
boolean arrows = sensitive() && !world().getEntitiesWithinAABB(EntityArrow.class,
|
||||
getBounds().add(Vector3.fromTileEntity(getTile())).toAABB()).isEmpty();
|
||||
getBounds().add(Vector3.fromTileEntity(tile())).toAABB()).isEmpty();
|
||||
boolean pressed = pressed();
|
||||
|
||||
if(arrows != pressed)
|
||||
|
||||
@@ -67,7 +67,7 @@ public abstract class McMetaPart extends McBlockPart implements IPartMeta
|
||||
@Override
|
||||
public BlockCoord getPos()
|
||||
{
|
||||
return new BlockCoord(getTile());
|
||||
return new BlockCoord(tile());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -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