use getters & setters for InfuseStorage (#5416)

* use getters & setters for InfuseStorage to prevent type/amount discrepancies

* Fix a few checks when reading from network/NBT

* Fix some spacing I screwed up by accident

* fix metallurgic infuser gui texture for dark gauge
This commit is contained in:
Xander authored and GitHub committed 2019-04-20 13:38:41 +08:00
1 parent bbcea85fc4
commit 0dba7cb584
14 files changed
+135 -87

No files matched your search

@@ -168,7 +168,7 @@ public interface IFactory {
} else if (fuelType == MachineFuelType.CHANCE) {
return getChanceRecipe(slotStack);
} else if (this == INFUSING) {
if (infuse.type != null) {
if (infuse.getType() != null) {
return RecipeHandler.getMetallurgicInfuserRecipe(new InfusionInput(infuse, slotStack));
} else {
for (Entry<InfusionInput, MetallurgicInfuserRecipe> entry : Recipe.METALLURGIC_INFUSER.get()