Fixed compile errors
This commit is contained in:
parent
b0784c44d2
commit
869e6d4bf8
2 changed files with 4 additions and 4 deletions
|
@ -44,7 +44,7 @@ public class GrinderRecipe extends BaseRecipe {
|
|||
if (grinder.tank.getFluid() == null) {
|
||||
return false;
|
||||
}
|
||||
if (grinder.tank.getFluid().getFluidID() == fluidStack.getFluidID()) {
|
||||
if (grinder.tank.getFluid() == fluidStack) {
|
||||
if (grinder.tank.getFluidAmount() >= fluidStack.amount) {
|
||||
return true;
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ public class GrinderRecipe extends BaseRecipe {
|
|||
if (grinder.tank.getFluid() == null) {
|
||||
return false;
|
||||
}
|
||||
if (grinder.tank.getFluid().getFluidID() == fluidStack.getFluidID()) {
|
||||
if (grinder.tank.getFluid() == fluidStack) {
|
||||
if (grinder.tank.getFluidAmount() >= fluidStack.amount) {
|
||||
if (grinder.tank.getFluidAmount() > 0) {
|
||||
grinder.tank.setFluid(new FluidStack(fluidStack.getFluid(), grinder.tank.getFluidAmount() - fluidStack.amount));
|
||||
|
|
|
@ -59,7 +59,7 @@ public class IndustrialSawmillRecipe extends BaseRecipe {
|
|||
if (sawmill.tank.getFluid() == null) {
|
||||
return false;
|
||||
}
|
||||
if (sawmill.tank.getFluid().getFluidID() == fluidStack.getFluidID()) {
|
||||
if (sawmill.tank.getFluid()== fluidStack) {
|
||||
if (sawmill.tank.getFluidAmount() >= fluidStack.amount) {
|
||||
return true;
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ public class IndustrialSawmillRecipe extends BaseRecipe {
|
|||
if (sawmill.tank.getFluid() == null) {
|
||||
return false;
|
||||
}
|
||||
if (sawmill.tank.getFluid().getFluidID() == fluidStack.getFluidID()) {
|
||||
if (sawmill.tank.getFluid() == fluidStack) {
|
||||
if (sawmill.tank.getFluidAmount() >= fluidStack.amount) {
|
||||
if (sawmill.tank.getFluidAmount() > 0) {
|
||||
sawmill.tank.setFluid(new FluidStack(fluidStack.getFluid(), sawmill.tank.getFluidAmount() - fluidStack.amount));
|
||||
|
|
Loading…
Reference in a new issue