Skip to content

Commit

Permalink
moved registry access closer to related functions
Browse files Browse the repository at this point in the history
  • Loading branch information
omergunr100 committed Dec 31, 2024
1 parent 5d25735 commit dc66138
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ public final class GTRegistries {
public static final GTRegistry.RL<GTOreDefinition> ORE_VEINS = new GTRegistry.RL<>(GTCEu.id("ore_vein"));
public static final GTRegistry.RL<DimensionMarker> DIMENSION_MARKERS = new GTRegistry.RL<>(
GTCEu.id("dimension_marker"));

private static final RegistryAccess BLANK = RegistryAccess.fromRegistryOfRegistries(BuiltInRegistries.REGISTRY);
private static RegistryAccess FROZEN = BLANK;

public static final DeferredRegister<TrunkPlacerType<?>> TRUNK_PLACER_TYPE = DeferredRegister
.create(Registries.TRUNK_PLACER_TYPE, GTCEu.MOD_ID);
public static final DeferredRegister<PlacementModifierType<?>> PLACEMENT_MODIFIER = DeferredRegister
Expand Down Expand Up @@ -105,6 +101,9 @@ public static void init(IEventBus eventBus) {
GLOBAL_LOOT_MODIFIES.register(eventBus);
}

private static final RegistryAccess BLANK = RegistryAccess.fromRegistryOfRegistries(BuiltInRegistries.REGISTRY);
private static RegistryAccess FROZEN = BLANK;

/**
* You shouldn't call it, you should probably not even look at it just to be extra safe
*
Expand Down

0 comments on commit dc66138

Please sign in to comment.