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
|
||||
public void updateEntity() {
|
||||
super.updateEntity();
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue