mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-21 04:32:18 +00:00
Compare commits
2
Commits
master
...
2.3.1.34-dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9176fdc020 | ||
|
|
b6614df9b3 |
@@ -164,11 +164,15 @@ public class TileConduitBundle extends TileEntityEio implements IConduitBundle {
|
|||||||
facadeMeta = nbtRoot.getInteger("facadeMeta");
|
facadeMeta = nbtRoot.getInteger("facadeMeta");
|
||||||
|
|
||||||
if(worldObj != null && worldObj.isRemote) {
|
if(worldObj != null && worldObj.isRemote) {
|
||||||
if (conduits.size() == 1 && conduits.get(0) instanceof IItemConduit) {
|
boolean stableConduit = true;
|
||||||
|
for(IConduit iConduit: conduits) {
|
||||||
|
if (!(iConduit instanceof IItemConduit) && !(iConduit instanceof IMEConduit) && !(iConduit instanceof IOCConduit)) stableConduit = false;
|
||||||
|
}
|
||||||
|
if (stableConduit) {
|
||||||
boolean itemConduitClientUpdated = false;
|
boolean itemConduitClientUpdated = false;
|
||||||
for (Object o : Minecraft.getMinecraft().theWorld.playerEntities) {
|
for (Object o : Minecraft.getMinecraft().theWorld.playerEntities) {
|
||||||
Entity e = ((Entity) o);
|
Entity e = ((Entity) o);
|
||||||
if (e.getDistanceSq(this.xCoord, yCoord, zCoord) < 36) {
|
if (e.getDistanceSq(this.xCoord, yCoord, zCoord) < 25) {
|
||||||
itemConduitClientUpdated = true;
|
itemConduitClientUpdated = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user