further fixes in templates

This commit is contained in:
SpaceToad 2014-03-16 15:14:55 +01:00
parent 5f50418382
commit 0edc3fbb09
3 changed files with 3 additions and 7 deletions

View file

@ -43,6 +43,7 @@ public class Schematic {
@Override
public Schematic clone() {
Schematic obj;
try {
obj = (Schematic) super.clone();
} catch (CloneNotSupportedException e) {

View file

@ -21,11 +21,7 @@ public class SchematicMask extends Schematic {
@Override
public Schematic clone() {
Schematic obj = super.clone();
((SchematicMask) obj).isConcrete = isConcrete;
return obj;
return new SchematicMask(isConcrete);
}
@Override

View file

@ -18,7 +18,6 @@ import net.minecraft.world.World;
import buildcraft.api.blueprints.IBuilderContext;
import buildcraft.api.blueprints.MappingRegistry;
import buildcraft.api.blueprints.Schematic;
import buildcraft.api.blueprints.SchematicBlock;
import buildcraft.builders.blueprints.BlueprintId;
import buildcraft.core.Box;
import buildcraft.core.Version;
@ -179,7 +178,7 @@ public abstract class BlueprintBase {
res.id = id;
res.author = author;
res.contents = new SchematicBlock[sizeX][sizeY][sizeZ];
res.contents = new Schematic [sizeX][sizeY][sizeZ];
res.mapping = mapping.clone ();