Some fixes, some breakages
This commit is contained in:
parent
0419c0dfa6
commit
31574f2cdd
1 changed files with 4 additions and 3 deletions
|
@ -107,6 +107,7 @@ public class RecipeCrafter {
|
|||
* Call this on the tile tick
|
||||
*/
|
||||
public void updateEntity() {
|
||||
speedMultiplier = 0.9;
|
||||
if(parentTile.getWorldObj().isRemote){
|
||||
return;
|
||||
}
|
||||
|
@ -124,7 +125,9 @@ public class RecipeCrafter {
|
|||
if (canGiveInvAll) {
|
||||
currentRecipe = recipe;//Sets the current recipe then syncs
|
||||
this.currentNeededTicks = (int)(currentRecipe.tickTime() * (1.0 - speedMultiplier));
|
||||
parentTile.syncWithAll();//update texture
|
||||
this.currentTickTime = 0;
|
||||
} else {
|
||||
this.currentTickTime = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -151,8 +154,6 @@ public class RecipeCrafter {
|
|||
useAllInputs();//this uses all the inputs
|
||||
currentRecipe = null;//resets
|
||||
currentTickTime = 0;
|
||||
//Force sync after craft to update texture
|
||||
parentTile.syncWithAll();
|
||||
}
|
||||
} else if (currentRecipe != null && currentTickTime < currentNeededTicks) {
|
||||
if (energy.useEnergy(getEuPerTick())) {//This uses the power
|
||||
|
|
Loading…
Add table
Reference in a new issue