Fix formatting

This commit is contained in:
yueh
2020-07-28 11:44:57 +02:00
parent a65be62cd1
commit 0beab559a6
74 changed files with 221 additions and 188 deletions
@@ -16,11 +16,13 @@ import net.minecraft.world.gen.settings.StructureSeparationSettings;
import appeng.worldgen.meteorite.MeteoriteStructure;
/**
* This Mixin will add the structure placement configuration for the meteorite structure
* to the static final immutable map that contains them. There is currently no
* Forge hook for this, and registering them during the registry event is already too late.
* This Mixin will add the structure placement configuration for the meteorite
* structure to the static final immutable map that contains them. There is
* currently no Forge hook for this, and registering them during the registry
* event is already too late.
* <p>
* If this is not done, Meteorites spawn every chunk, since that is the default for missing entries.
* If this is not done, Meteorites spawn every chunk, since that is the default
* for missing entries.
*/
@Mixin(DimensionStructuresSettings.class)
public class DimensionStructuresSettingsMixin {
@@ -31,8 +33,7 @@ public class DimensionStructuresSettingsMixin {
@Inject(method = "<clinit>", at = @At("TAIL"))
private static void addMeteoriteSpreadConfig(CallbackInfo ci) {
field_236191_b_ = ImmutableMap.<Structure<?>, StructureSeparationSettings>builder()
.putAll(field_236191_b_)
field_236191_b_ = ImmutableMap.<Structure<?>, StructureSeparationSettings>builder().putAll(field_236191_b_)
.put(MeteoriteStructure.INSTANCE, new StructureSeparationSettings(32, 8, 124895654)).build();
}