Fix #602. Fixing the imprinter and infuser GUIs to work like the alyzers.

Imprinter and infuser would previously not run their output until the output
slot was clicked (likely, only in SSP). Treealyzer and Beealyzer comment out a
block of code (Flutterlyzer never had this in the first place) that was
uncommented in these... doing the same here made the issue go away.

Sign CLA
This commit is contained in:
Joe Amenta authored and mezz committed 2015-04-10 19:26:33 -07:00
1 parent 4be4606854
commit 0462e5a930
5 files changed
+3 -12

No files matched your search

+1
View File
@@ -1,3 +1,4 @@
Account;Email;Date;
samtrion;samtrion@gmail.com;2015-01-18
GenuineSounds;GenuineSoundsLtd@gmail.com;2015-02-26
airbreather;airbreather@linux.com;2015-04-10
@@ -82,8 +82,6 @@ public class ItemBeealyzer extends ItemInventoried {
@Override
public void markDirty() {
// if (!Proxies.common.isSimulating(player.worldObj))
// return;
tryAnalyze();
}
@@ -136,9 +136,6 @@ public class ItemImprinter extends ItemForestry {
@Override
public void markDirty() {
if (!Proxies.common.isSimulating(player.worldObj)) {
return;
}
tryImprint();
}
@@ -95,8 +95,6 @@ public class ItemTreealyzer extends ItemInventoried {
@Override
public void markDirty() {
// if (!Proxies.common.isSimulating(player.worldObj))
// return;
tryAnalyze();
}
@@ -310,9 +310,6 @@ public class ItemInfuser extends ItemForestry {
@Override
public void markDirty() {
if (!Proxies.common.isSimulating(player.worldObj)) {
return;
}
trySeasoning();
}
@@ -324,9 +321,9 @@ public class ItemInfuser extends ItemForestry {
@Override
public boolean canSlotAccept(int slotIndex, ItemStack itemStack) {
if (slotIndex == inputSlot) {
ForestryItem.beverage.isItemEqual(itemStack);
return ForestryItem.beverage.isItemEqual(itemStack);
} else if (slotIndex >= ingredientSlot1 && slotIndex < ingredientSlot1 + ingredientSlotCount) {
BeverageManager.infuserManager.isIngredient(itemStack);
return BeverageManager.infuserManager.isIngredient(itemStack);
}
return false;
}