getTile() is deprecated.
This commit is contained in:
parent
a7579ff98f
commit
484c3a83a6
2 changed files with 5 additions and 5 deletions
|
@ -22,9 +22,9 @@ public abstract class PartConductor extends PartAdvanced implements IConductor
|
||||||
@Override
|
@Override
|
||||||
public void preRemove()
|
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();
|
super.preRemove();
|
||||||
|
@ -39,9 +39,9 @@ public abstract class PartConductor extends PartAdvanced implements IConductor
|
||||||
@Override
|
@Override
|
||||||
public IElectricityNetwork getNetwork()
|
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;
|
return this.network;
|
||||||
|
|
|
@ -465,7 +465,7 @@ public class PartWire extends PartUniversalConductor implements TSlottedPart, JN
|
||||||
this.isInsulated = insulated;
|
this.isInsulated = insulated;
|
||||||
this.refresh();
|
this.refresh();
|
||||||
this.world().markBlockForUpdate(this.x(), this.y(), this.z());
|
this.world().markBlockForUpdate(this.x(), this.y(), this.z());
|
||||||
((TileMultipart)this.getTile()).notifyPartChange(this);
|
((TileMultipart)this.tile()).notifyPartChange(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setInsulated()
|
public void setInsulated()
|
||||||
|
|
Loading…
Reference in a new issue