From 484c3a83a6724d080801c64a86dc3ceaf0225df6 Mon Sep 17 00:00:00 2001 From: Ben Spiers Date: Thu, 26 Sep 2013 20:26:54 +0100 Subject: [PATCH] getTile() is deprecated. --- src/resonantinduction/wire/multipart/PartConductor.java | 8 ++++---- src/resonantinduction/wire/multipart/PartWire.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/resonantinduction/wire/multipart/PartConductor.java b/src/resonantinduction/wire/multipart/PartConductor.java index fb2d79ed7..9930634b6 100644 --- a/src/resonantinduction/wire/multipart/PartConductor.java +++ b/src/resonantinduction/wire/multipart/PartConductor.java @@ -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; diff --git a/src/resonantinduction/wire/multipart/PartWire.java b/src/resonantinduction/wire/multipart/PartWire.java index 71fa06162..826512962 100644 --- a/src/resonantinduction/wire/multipart/PartWire.java +++ b/src/resonantinduction/wire/multipart/PartWire.java @@ -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()