mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-28 07:35:49 +00:00
Fix broken demon city buildings (#136)
This commit is contained in:
1 parent
2026024920
commit
b6284e20dc
5 files changed
+75
-34
No files matched your search
@@ -20,9 +20,9 @@ public class DemonBuilding {
|
||||
public DemonBuilding(BuildingSchematic schematic) {
|
||||
this.schematic = schematic;
|
||||
this.buildingType = schematic.buildingType;
|
||||
this.buildingTier = 0;
|
||||
this.buildingTier = schematic.buildingTier;
|
||||
this.area = this.createGSHForSchematic(schematic);
|
||||
this.doorGridSpace = new Int3(0, 0, 0);
|
||||
this.doorGridSpace = schematic.getGridSpotOfDoor();
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
@@ -67,18 +67,10 @@ public class DemonBuilding {
|
||||
int z = doorSpace.z();
|
||||
|
||||
switch (sideOfRoad) {
|
||||
case SOUTH:
|
||||
z++;
|
||||
break;
|
||||
case EAST:
|
||||
x++;
|
||||
break;
|
||||
case WEST:
|
||||
x--;
|
||||
break;
|
||||
default:
|
||||
z--;
|
||||
break;
|
||||
case SOUTH -> z++;
|
||||
case EAST -> x++;
|
||||
case WEST -> x--;
|
||||
default -> z--;
|
||||
}
|
||||
|
||||
return new Int3(x, yLevel, z);
|
||||
|
||||
Reference in new issue
Block a user