16
16
import worldgeneratorextension .multitspop .template .ReadOnlyLegacyStructureTemplate2 ;
17
17
import worldgeneratorextension .multitspop .template .ReadableStructureTemplate ;
18
18
import worldgeneratorextension .multitspop .template .StructurePlaceSettings ;
19
+ import worldgeneratorextension .singletspop .populator .PopulatorShipwreck ;
19
20
20
21
import java .util .function .Consumer ;
21
22
@@ -24,7 +25,7 @@ public class PopulatorRuinedPortal extends Populator {
24
25
protected static final ReadableStructureTemplate PORTAL3 = new ReadOnlyLegacyStructureTemplate2 ().load (Loader .loadNBT ("structures/ruined_portal/portal_3.nbt" ));
25
26
protected static final ReadableStructureTemplate PORTAL4 = new ReadOnlyLegacyStructureTemplate2 ().load (Loader .loadNBT ("structures/ruined_portal/portal_4.nbt" ));
26
27
27
- protected static final int SPACING = 20 ;
28
+ protected static final int SPACING = 24 ;
28
29
protected static final int SEPARATION = 8 ;
29
30
30
31
@ Override
@@ -46,7 +47,7 @@ public void populate(ChunkManager level, int chunkX, int chunkZ, NukkitRandom ra
46
47
}
47
48
48
49
int id = chunk .getBlockId (x , y , z );
49
- while (FILTER [id ] && y > 0 ) {
50
+ while (PopulatorShipwreck . FILTER [id ] && y > 0 ) {
50
51
id = chunk .getBlockId (x , --y , z );
51
52
}
52
53
@@ -77,37 +78,8 @@ public void populate(ChunkManager level, int chunkX, int chunkZ, NukkitRandom ra
77
78
}
78
79
}
79
80
80
- public static final boolean [] FILTER = new boolean [Block .MAX_BLOCK_ID ];
81
-
82
81
public static void init () {
83
- FILTER [AIR ] = true ;
84
- FILTER [LOG ] = true ;
85
- FILTER [WATER ] = true ;
86
- FILTER [STILL_WATER ] = true ;
87
- FILTER [LAVA ] = true ;
88
- FILTER [STILL_LAVA ] = true ;
89
- FILTER [LEAVES ] = true ;
90
- FILTER [TALL_GRASS ] = true ;
91
- FILTER [DEAD_BUSH ] = true ;
92
- FILTER [DANDELION ] = true ;
93
- FILTER [RED_FLOWER ] = true ;
94
- FILTER [BROWN_MUSHROOM ] = true ;
95
- FILTER [RED_MUSHROOM ] = true ;
96
- FILTER [SNOW_LAYER ] = true ;
97
- FILTER [ICE ] = true ;
98
- FILTER [CACTUS ] = true ;
99
- FILTER [REEDS ] = true ;
100
- FILTER [PUMPKIN ] = true ;
101
- FILTER [BROWN_MUSHROOM_BLOCK ] = true ;
102
- FILTER [RED_MUSHROOM_BLOCK ] = true ;
103
- FILTER [MELON_BLOCK ] = true ;
104
- FILTER [VINE ] = true ;
105
- FILTER [WATER_LILY ] = true ;
106
- FILTER [COCOA ] = true ;
107
- FILTER [LEAVES2 ] = true ;
108
- FILTER [LOG2 ] = true ;
109
- FILTER [PACKED_ICE ] = true ;
110
- FILTER [DOUBLE_PLANT ] = true ;
82
+ //NOOP
111
83
}
112
84
113
85
protected static Consumer <CompoundTag > getBlockActorProcessor (FullChunk chunk , NukkitRandom random ) {
0 commit comments