boolean found = false;
for(Map.Entry<Block, Class<? extends IHackableBlock>> registeredEntry : PneumaticCraftAPIHandler.getInstance().hackableBlocks.entrySet()) {
if(hackableBlock.getClass() == registeredEntry.getValue()) {
if(hackedBlock.getBlock() == registeredEntry.getKey()) {
if(!hackableBlock.afterHackTick((World)hackedBlock.world, hackedBlock.x, hackedBlock.y, hackedBlock.z)) {
blockIterator.remove();
}
found = true;
break;
}