Deduplicate multiblock verification from BlockEntities and Guis (#2133)
* Deduplicate multiblock verification from BlockEntities and Guis * Update REI * Remove unneeded calls
This commit is contained in:
parent
c89d6941ae
commit
4b2042a100
25 changed files with 275 additions and 939 deletions
|
@ -62,7 +62,7 @@ public class FluidReplicatorRecipe extends RebornFluidRecipe {
|
|||
@Override
|
||||
public boolean canCraft(BlockEntity be) {
|
||||
FluidReplicatorBlockEntity blockEntity = (FluidReplicatorBlockEntity) be;
|
||||
if (!blockEntity.getMultiBlock()) {
|
||||
if (!blockEntity.isMultiblockValid()) {
|
||||
return false;
|
||||
}
|
||||
final BlockPos hole = blockEntity.getPos().offset(blockEntity.getFacing().getOpposite(), 2);
|
||||
|
|
|
@ -58,7 +58,7 @@ public class IndustrialGrinderRecipe extends RebornFluidRecipe {
|
|||
@Override
|
||||
public boolean canCraft(BlockEntity be) {
|
||||
IndustrialGrinderBlockEntity blockEntity = (IndustrialGrinderBlockEntity) be;
|
||||
if (!blockEntity.getMultiBlock()) {
|
||||
if (!blockEntity.isMultiblockValid()) {
|
||||
return false;
|
||||
}
|
||||
return super.canCraft(be);
|
||||
|
|
|
@ -58,7 +58,7 @@ public class IndustrialSawmillRecipe extends RebornFluidRecipe {
|
|||
@Override
|
||||
public boolean canCraft(BlockEntity be) {
|
||||
IndustrialSawmillBlockEntity blockEntity = (IndustrialSawmillBlockEntity) be;
|
||||
if (!blockEntity.getMutliBlock()) {
|
||||
if (!blockEntity.isMultiblockValid()) {
|
||||
return false;
|
||||
}
|
||||
return super.canCraft(be);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue