getTile() is deprecated.

This commit is contained in:
Ben Spiers 2013-09-26 20:26:54 +01:00
parent a7579ff98f
commit 484c3a83a6
2 changed files with 5 additions and 5 deletions

View file

@ -22,9 +22,9 @@ public abstract class PartConductor extends PartAdvanced implements IConductor
@Override
public void preRemove()
{
if (!this.world().isRemote && this.getTile() instanceof IConductor)
if (!this.world().isRemote && this.tile() instanceof IConductor)
{
this.getNetwork().split((IConductor)this.getTile());
this.getNetwork().split((IConductor)this.tile());
}
super.preRemove();
@ -39,9 +39,9 @@ public abstract class PartConductor extends PartAdvanced implements IConductor
@Override
public IElectricityNetwork getNetwork()
{
if (this.network == null && this.getTile() instanceof IConductor)
if (this.network == null && this.tile() instanceof IConductor)
{
this.setNetwork(NetworkLoader.getNewNetwork((IConductor)this.getTile()));
this.setNetwork(NetworkLoader.getNewNetwork((IConductor)this.tile()));
}
return this.network;

View file

@ -465,7 +465,7 @@ public class PartWire extends PartUniversalConductor implements TSlottedPart, JN
this.isInsulated = insulated;
this.refresh();
this.world().markBlockForUpdate(this.x(), this.y(), this.z());
((TileMultipart)this.getTile()).notifyPartChange(this);
((TileMultipart)this.tile()).notifyPartChange(this);
}
public void setInsulated()