further fixes in templates
This commit is contained in:
parent
5f50418382
commit
0edc3fbb09
3 changed files with 3 additions and 7 deletions
|
@ -43,6 +43,7 @@ public class Schematic {
|
|||
@Override
|
||||
public Schematic clone() {
|
||||
Schematic obj;
|
||||
|
||||
try {
|
||||
obj = (Schematic) super.clone();
|
||||
} catch (CloneNotSupportedException e) {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 ();
|
||||
|
||||
|
|
Loading…
Reference in a new issue