fixed blueprint support for redstone comparator, close #1519

This commit is contained in:
SpaceToad 2014-03-17 20:17:44 +01:00
parent ef36d39b28
commit e74fce7786
2 changed files with 6 additions and 4 deletions

View file

@ -61,7 +61,7 @@ import buildcraft.builders.schematics.SchematicLever;
import buildcraft.builders.schematics.SchematicPiston; import buildcraft.builders.schematics.SchematicPiston;
import buildcraft.builders.schematics.SchematicPortal; import buildcraft.builders.schematics.SchematicPortal;
import buildcraft.builders.schematics.SchematicPumpkin; import buildcraft.builders.schematics.SchematicPumpkin;
import buildcraft.builders.schematics.SchematicRedstoneRepeater; import buildcraft.builders.schematics.SchematicRedstoneDiode;
import buildcraft.builders.schematics.SchematicRotateInventory; import buildcraft.builders.schematics.SchematicRotateInventory;
import buildcraft.builders.schematics.SchematicRotateMeta; import buildcraft.builders.schematics.SchematicRotateMeta;
import buildcraft.builders.schematics.SchematicSign; import buildcraft.builders.schematics.SchematicSign;
@ -180,8 +180,10 @@ public class BuildCraftBuilders extends BuildCraftMod {
SchematicRegistry.registerSchematicClass(Blocks.melon_stem, SchematicCustomStack.class, new ItemStack(Items.melon_seeds)); SchematicRegistry.registerSchematicClass(Blocks.melon_stem, SchematicCustomStack.class, new ItemStack(Items.melon_seeds));
SchematicRegistry.registerSchematicClass(Blocks.glowstone, SchematicCustomStack.class, new ItemStack(Blocks.glowstone)); SchematicRegistry.registerSchematicClass(Blocks.glowstone, SchematicCustomStack.class, new ItemStack(Blocks.glowstone));
SchematicRegistry.registerSchematicClass(Blocks.powered_repeater, SchematicRedstoneRepeater.class); SchematicRegistry.registerSchematicClass(Blocks.powered_repeater, SchematicRedstoneDiode.class);
SchematicRegistry.registerSchematicClass(Blocks.unpowered_repeater, SchematicRedstoneRepeater.class); SchematicRegistry.registerSchematicClass(Blocks.unpowered_repeater, SchematicRedstoneDiode.class);
SchematicRegistry.registerSchematicClass(Blocks.powered_comparator, SchematicRedstoneDiode.class);
SchematicRegistry.registerSchematicClass(Blocks.unpowered_comparator, SchematicRedstoneDiode.class);
SchematicRegistry.registerSchematicClass(Blocks.water, SchematicFluid.class, new ItemStack(Items.water_bucket)); SchematicRegistry.registerSchematicClass(Blocks.water, SchematicFluid.class, new ItemStack(Items.water_bucket));
SchematicRegistry.registerSchematicClass(Blocks.flowing_water, SchematicFluid.class, new ItemStack(Items.water_bucket)); SchematicRegistry.registerSchematicClass(Blocks.flowing_water, SchematicFluid.class, new ItemStack(Items.water_bucket));

View file

@ -15,7 +15,7 @@ import net.minecraft.item.ItemStack;
import buildcraft.api.blueprints.SchematicBlock; import buildcraft.api.blueprints.SchematicBlock;
import buildcraft.api.blueprints.IBuilderContext; import buildcraft.api.blueprints.IBuilderContext;
public class SchematicRedstoneRepeater extends SchematicBlock { public class SchematicRedstoneDiode extends SchematicBlock {
@Override @Override
public void addRequirements(IBuilderContext context, LinkedList<ItemStack> requirements) { public void addRequirements(IBuilderContext context, LinkedList<ItemStack> requirements) {