(DecorateBiomeEvent.Decorate aEvent)
| 141 | if (mDisableVanillaOres && !WD.dimTF(aEvent.world) && PREVENTED_ORES.contains(aEvent.type)) aEvent.setResult(Result.DENY); |
| 142 | } |
| 143 | @SubscribeEvent(priority = EventPriority.HIGHEST) |
| 144 | public void onTerrainGenEvent(DecorateBiomeEvent.Decorate aEvent) { |
| 145 | if (aEvent.world.provider.dimensionId == 0) { |
| 146 | if (MD.RTG.mLoaded) { |
| 147 | String tClassName = UT.Reflection.getLowercaseClass(aEvent.world.provider.terrainType); |
| 148 | if ("WorldProviderSurfaceRTG".equalsIgnoreCase(tClassName) || "WorldTypeRTG".equalsIgnoreCase(tClassName)) return; |
| 149 | } |
| 150 | if (GENERATE_STREETS && (UT.Code.inside(-48, 47, aEvent.chunkX) || UT.Code.inside(-48, 47, aEvent.chunkZ))) {aEvent.setResult(Result.DENY); return;} |
| 151 | if (GENERATE_BIOMES && (UT.Code.inside(-96, 95, aEvent.chunkX) && UT.Code.inside(-96, 95, aEvent.chunkZ))) {aEvent.setResult(Result.DENY); return;} |
| 152 | } |
| 153 | } |
| 154 | @SubscribeEvent(priority = EventPriority.HIGHEST) |
| 155 | public void onTerrainGenEvent(PopulateChunkEvent.Populate aEvent) { |
| 156 | if (aEvent.world.provider.dimensionId == 0) { |
nothing calls this directly
no test coverage detected