Fixed invalid laser tree farm ignoring extra laser mediums at boot

This commit is contained in:
Unknown 2018-05-13 16:38:51 +02:00
parent 476c0cd98d
commit 28d27ea663
2 changed files with 9 additions and 2 deletions

View file

@ -44,6 +44,12 @@ public abstract class TileEntityAbstractLaser extends TileEntityAbstractInterfac
});
}
@Override
protected void onFirstUpdateTick() {
super.onFirstUpdateTick();
updateLaserMediumDirection();
}
@Override
public void updateEntity() {
super.updateEntity();

View file

@ -18,6 +18,7 @@ import net.minecraft.nbt.NBTTagCompound;
import net.minecraftforge.common.util.ForgeDirection;
public abstract class TileEntityAbstractMiner extends TileEntityAbstractLaser {
// machine type
protected ForgeDirection laserOutputSide = ForgeDirection.NORTH;
@ -32,8 +33,8 @@ public abstract class TileEntityAbstractMiner extends TileEntityAbstractLaser {
}
@Override
public void validate() {
super.validate();
protected void onFirstUpdateTick() {
super.onFirstUpdateTick();
laserOutput = new Vector3(this).translate(0.5D).translate(laserOutputSide, 0.5D);
}