Fixed invalid laser tree farm ignoring extra laser mediums at boot
This commit is contained in:
parent
476c0cd98d
commit
28d27ea663
2 changed files with 9 additions and 2 deletions
|
@ -44,6 +44,12 @@ public abstract class TileEntityAbstractLaser extends TileEntityAbstractInterfac
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onFirstUpdateTick() {
|
||||||
|
super.onFirstUpdateTick();
|
||||||
|
updateLaserMediumDirection();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void updateEntity() {
|
public void updateEntity() {
|
||||||
super.updateEntity();
|
super.updateEntity();
|
||||||
|
|
|
@ -18,6 +18,7 @@ import net.minecraft.nbt.NBTTagCompound;
|
||||||
import net.minecraftforge.common.util.ForgeDirection;
|
import net.minecraftforge.common.util.ForgeDirection;
|
||||||
|
|
||||||
public abstract class TileEntityAbstractMiner extends TileEntityAbstractLaser {
|
public abstract class TileEntityAbstractMiner extends TileEntityAbstractLaser {
|
||||||
|
|
||||||
// machine type
|
// machine type
|
||||||
protected ForgeDirection laserOutputSide = ForgeDirection.NORTH;
|
protected ForgeDirection laserOutputSide = ForgeDirection.NORTH;
|
||||||
|
|
||||||
|
@ -32,8 +33,8 @@ public abstract class TileEntityAbstractMiner extends TileEntityAbstractLaser {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void validate() {
|
protected void onFirstUpdateTick() {
|
||||||
super.validate();
|
super.onFirstUpdateTick();
|
||||||
laserOutput = new Vector3(this).translate(0.5D).translate(laserOutputSide, 0.5D);
|
laserOutput = new Vector3(this).translate(0.5D).translate(laserOutputSide, 0.5D);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue