Skip to content

Commit

Permalink
Add Processing Array compatibility for Rock Breaker (#1099)
Browse files Browse the repository at this point in the history
  • Loading branch information
tracer4b authored Aug 19, 2022
1 parent b51f1eb commit eba4a24
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/main/java/gregtech/api/util/GTUtility.java
Original file line number Diff line number Diff line change
Expand Up @@ -956,9 +956,7 @@ public static boolean isMachineValidForMachineHatch(ItemStack machineStack, Stri
}

MetaTileEntity machine = getMetaTileEntity(machineStack);
// Blacklist the Rock Breaker here instead of through the config option so we don't get people removing the config entry and then
// complaining it does not work. Remove from here if we ever decide to implement PA Rock Breaker
if (machine instanceof WorkableTieredMetaTileEntity && !(machine instanceof SimpleGeneratorMetaTileEntity || machine instanceof MetaTileEntityRockBreaker))
if (machine instanceof WorkableTieredMetaTileEntity && !(machine instanceof SimpleGeneratorMetaTileEntity))
return !findMachineInBlacklist(machine.getRecipeMap().getUnlocalizedName(), recipeMapBlacklist);

return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ public void onNeighborChanged() {
}

private void checkAdjacentFluids() {
if (getWorld() == null || getWorld().isRemote) {
if (getWorld() == null) {
hasValidFluids = true;
return;
}
if (getWorld().isRemote) {
hasValidFluids = false;
return;
}
Expand Down

0 comments on commit eba4a24

Please sign in to comment.