Browse Source

Only Changed two Portal Rooms decoratively

Gregorius Techneticies 3 months ago
parent
commit
df5590bfb5
Signed by: Gregorius Techneticies <gregoriustech@gmail.com> GPG Key ID: 1B693EA14F2FD70F

+ 18
- 2
src/main/java/gregapi/worldgen/dungeon/DungeonChunkRoomPortalEnd.java View File

@@ -1,5 +1,5 @@
1 1
 /**
2
- * Copyright (c) 2020 GregTech-6 Team
2
+ * Copyright (c) 2021 GregTech-6 Team
3 3
  *
4 4
  * This file is part of GregTech.
5 5
  *
@@ -35,13 +35,29 @@ public class DungeonChunkRoomPortalEnd extends DungeonChunkRoomVault {
35 35
 		if (aData.mTags.contains(WorldgenDungeonGT.TAG_PORTAL_END) || !super.generate(aData)) return F;
36 36
 		aData.mTags.add(WorldgenDungeonGT.TAG_PORTAL_END);
37 37
 		
38
+		Block tPurpurBlock = ST.block(MD.EtFu, "purpur_block"), tPurpurPillar = ST.block(MD.EtFu, "purpur_pillar");
39
+		
40
+		if (ST.valid(tPurpurBlock) && ST.valid(tPurpurPillar)) {
41
+			for (int tX = 1; tX < 15; tX++) for (int tZ = 1; tZ < 15; tZ++) {
42
+				if ((tX == 3 || tX == 6 || tX == 9 || tX == 12) && (tZ == 3 || tZ == 6 || tZ == 9 || tZ == 12)) {
43
+					aData.set  (tX, 0, tZ, tPurpurPillar, 0);
44
+					aData.set  (tX, 7, tZ, Blocks.glowstone);
45
+					aData.tiles(tX, 8, tZ);
46
+				} else {
47
+					aData.set  (tX, 0, tZ, tPurpurBlock, 0);
48
+					aData.set  (tX, 7, tZ, tPurpurBlock, 0);
49
+					aData.tiles(tX, 8, tZ);
50
+				}
51
+			}
52
+		}
53
+		
38 54
 		Block tHexorium = ST.block(MD.HEX, "blockEnergizedHexoriumMonolithRainbow");
39 55
 		
40 56
 		for (int tX = 5; tX <= 10; tX++) for (int tZ = 5; tZ <= 10; tZ++) {
41 57
 			if ((tX == 5 || tX == 10) && (tZ == 5 || tZ == 10)) {
42 58
 				aData.obsidian(tX,  0, tZ, T);
43 59
 				aData.obsidian(tX,  1, tZ, T);
44
-				if (tHexorium != NB && tHexorium != null) {
60
+				if (ST.valid(tHexorium)) {
45 61
 					aData.set(tX, 2, tZ, tHexorium, 9, 3);
46 62
 				} else {
47 63
 					aData.set(tX, 2, tZ, Blocks.glowstone, 0, 3);

+ 2
- 2
src/main/java/gregapi/worldgen/dungeon/DungeonChunkRoomPortalNether.java View File

@@ -1,5 +1,5 @@
1 1
 /**
2
- * Copyright (c) 2020 GregTech-6 Team
2
+ * Copyright (c) 2021 GregTech-6 Team
3 3
  *
4 4
  * This file is part of GregTech.
5 5
  *
@@ -51,7 +51,7 @@ public class DungeonChunkRoomPortalNether extends DungeonChunkRoomPortal {
51 51
 		Block tShroomLight = IL.NeLi_ShroomLight.block(), tWartBlock = ST.block(MD.NeLi, "Wartblock");
52 52
 		int tMeta = aData.next(3);
53 53
 		
54
-		if (tShroomLight != NB && tWartBlock != NB) {
54
+		if (ST.valid(tShroomLight) && ST.valid(tWartBlock)) {
55 55
 			for (int tX = 1; tX < 15; tX++) for (int tZ = 1; tZ < 15; tZ++) {
56 56
 				if ((tX == 3 || tX == 6 || tX == 9 || tX == 12) && (tZ == 3 || tZ == 6 || tZ == 9 || tZ == 12)) {
57 57
 					aData.set  (tX, 7, tZ, tShroomLight);

Loading…
Cancel
Save