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
|
@Override
|
||||||
public Schematic clone() {
|
public Schematic clone() {
|
||||||
Schematic obj;
|
Schematic obj;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
obj = (Schematic) super.clone();
|
obj = (Schematic) super.clone();
|
||||||
} catch (CloneNotSupportedException e) {
|
} catch (CloneNotSupportedException e) {
|
||||||
|
|
|
@ -21,11 +21,7 @@ public class SchematicMask extends Schematic {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Schematic clone() {
|
public Schematic clone() {
|
||||||
Schematic obj = super.clone();
|
return new SchematicMask(isConcrete);
|
||||||
|
|
||||||
((SchematicMask) obj).isConcrete = isConcrete;
|
|
||||||
|
|
||||||
return obj;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -18,7 +18,6 @@ import net.minecraft.world.World;
|
||||||
import buildcraft.api.blueprints.IBuilderContext;
|
import buildcraft.api.blueprints.IBuilderContext;
|
||||||
import buildcraft.api.blueprints.MappingRegistry;
|
import buildcraft.api.blueprints.MappingRegistry;
|
||||||
import buildcraft.api.blueprints.Schematic;
|
import buildcraft.api.blueprints.Schematic;
|
||||||
import buildcraft.api.blueprints.SchematicBlock;
|
|
||||||
import buildcraft.builders.blueprints.BlueprintId;
|
import buildcraft.builders.blueprints.BlueprintId;
|
||||||
import buildcraft.core.Box;
|
import buildcraft.core.Box;
|
||||||
import buildcraft.core.Version;
|
import buildcraft.core.Version;
|
||||||
|
@ -179,7 +178,7 @@ public abstract class BlueprintBase {
|
||||||
res.id = id;
|
res.id = id;
|
||||||
res.author = author;
|
res.author = author;
|
||||||
|
|
||||||
res.contents = new SchematicBlock[sizeX][sizeY][sizeZ];
|
res.contents = new Schematic [sizeX][sizeY][sizeZ];
|
||||||
|
|
||||||
res.mapping = mapping.clone ();
|
res.mapping = mapping.clone ();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue