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
|
* Call this on the tile tick
|
||||||
*/
|
*/
|
||||||
public void updateEntity() {
|
public void updateEntity() {
|
||||||
|
speedMultiplier = 0.9;
|
||||||
if(parentTile.getWorldObj().isRemote){
|
if(parentTile.getWorldObj().isRemote){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -124,7 +125,9 @@ public class RecipeCrafter {
|
||||||
if (canGiveInvAll) {
|
if (canGiveInvAll) {
|
||||||
currentRecipe = recipe;//Sets the current recipe then syncs
|
currentRecipe = recipe;//Sets the current recipe then syncs
|
||||||
this.currentNeededTicks = (int)(currentRecipe.tickTime() * (1.0 - speedMultiplier));
|
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
|
useAllInputs();//this uses all the inputs
|
||||||
currentRecipe = null;//resets
|
currentRecipe = null;//resets
|
||||||
currentTickTime = 0;
|
currentTickTime = 0;
|
||||||
//Force sync after craft to update texture
|
|
||||||
parentTile.syncWithAll();
|
|
||||||
}
|
}
|
||||||
} else if (currentRecipe != null && currentTickTime < currentNeededTicks) {
|
} else if (currentRecipe != null && currentTickTime < currentNeededTicks) {
|
||||||
if (energy.useEnergy(getEuPerTick())) {//This uses the power
|
if (energy.useEnergy(getEuPerTick())) {//This uses the power
|
||||||
|
|
Loading…
Add table
Reference in a new issue