| 137 | private static final EnumSet<EventType> PREVENTED_ORES = EnumSet.of(EventType.COAL, EventType.IRON, EventType.GOLD, EventType.DIAMOND, EventType.REDSTONE, EventType.LAPIS, EventType.QUARTZ); |
| 138 | |
| 139 | @SubscribeEvent(priority = EventPriority.HIGHEST) |
| 140 | public void onOreGenEvent(GenerateMinable 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) { |