-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: Port to 1.20.5 and probably break something important * chore: Fix logger message * chore: Fix logger message Signed-off-by: Awakened-Redstone <40528665+Awakened-Redstone@users.noreply.github.com> * chore: Fix commented line Signed-off-by: Awakened-Redstone <40528665+Awakened-Redstone@users.noreply.github.com> * chore: Undo static removal Signed-off-by: Awakened-Redstone <40528665+Awakened-Redstone@users.noreply.github.com> * chore: Uncomment and port recipe manager Signed-off-by: Awakened-Redstone <40528665+Awakened-Redstone@users.noreply.github.com> * chore: Remove try catch Signed-off-by: Awakened-Redstone <40528665+Awakened-Redstone@users.noreply.github.com> * chore: Better handle test command errors Signed-off-by: Awakened-Redstone <40528665+Awakened-Redstone@users.noreply.github.com> * chore: Use overworld dimension to get proper world height Signed-off-by: Awakened-Redstone <40528665+Awakened-Redstone@users.noreply.github.com> * chore: Use 1.20.5 Signed-off-by: Awakened-Redstone <40528665+Awakened-Redstone@users.noreply.github.com> * chore: Remove unused imports Signed-off-by: Awakened-Redstone <40528665+Awakened-Redstone@users.noreply.github.com> * chore: Sort actions the same order as on SimpleRegistry#add and remove from entryToRawId Signed-off-by: Awakened-Redstone <40528665+Awakened-Redstone@users.noreply.github.com> * fix: Don't remove the value twice Signed-off-by: Awakened-Redstone <40528665+Awakened-Redstone@users.noreply.github.com> * chore: Cleanup code Signed-off-by: Awakened-Redstone <40528665+Awakened-Redstone@users.noreply.github.com> * chore: Finally get this mixin to work, mod compat unknown Signed-off-by: Awakened-Redstone <40528665+Awakened-Redstone@users.noreply.github.com> * chore: Remove comment Signed-off-by: Awakened-Redstone <40528665+Awakened-Redstone@users.noreply.github.com> * chore: Remove polymer-reg-sync-manipulator No difference was noticed with and without it Signed-off-by: Awakened-Redstone <40528665+Awakened-Redstone@users.noreply.github.com> * chore: Use fabric-api for an easier to understand mod resolution error Signed-off-by: Awakened-Redstone <40528665+Awakened-Redstone@users.noreply.github.com> * chore: Bump mod version Bump the mod version as the PR has a small behavior change (RuntimeWorldConfig.java:78) Signed-off-by: Awakened-Redstone <40528665+Awakened-Redstone@users.noreply.github.com> * fix: Require MC 1.20.5+ Oops, I forgot about this Signed-off-by: Awakened-Redstone <40528665+Awakened-Redstone@users.noreply.github.com> * chore: Java 21 I missed some stuff Signed-off-by: Awakened-Redstone <40528665+Awakened-Redstone@users.noreply.github.com> * chore: 1.20.6 Update to 1.20.6, bumping mc ver as modders should use it over 1.20.5, not bumping required mc ver for compatibility Signed-off-by: Awakened-Redstone <40528665+Awakened-Redstone@users.noreply.github.com> * fix SAVE_PROPERTIES_PREDICATE dimension option encoding of runtime worlds --------- Signed-off-by: Awakened-Redstone <40528665+Awakened-Redstone@users.noreply.github.com> Co-authored-by: LCLP <lukas@lclpnet.work>
- Loading branch information
1 parent
0f61f4d
commit 7fe6963
Showing
21 changed files
with
151 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 0 additions & 20 deletions
20
src/main/java/xyz/nucleoid/fantasy/mixin/registry/DimensionOptionsRegistryHolderMixin.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/main/java/xyz/nucleoid/fantasy/mixin/registry/WorldGenSettingsMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package xyz.nucleoid.fantasy.mixin.registry; | ||
|
||
import com.google.common.collect.Maps; | ||
import net.minecraft.world.dimension.DimensionOptionsRegistryHolder; | ||
import net.minecraft.world.level.WorldGenSettings; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.ModifyArg; | ||
import xyz.nucleoid.fantasy.FantasyDimensionOptions; | ||
|
||
@Mixin(WorldGenSettings.class) | ||
public class WorldGenSettingsMixin { | ||
|
||
@ModifyArg(method = "encode(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/world/gen/GeneratorOptions;Lnet/minecraft/world/dimension/DimensionOptionsRegistryHolder;)Lcom/mojang/serialization/DataResult;", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/level/WorldGenSettings;<init>(Lnet/minecraft/world/gen/GeneratorOptions;Lnet/minecraft/world/dimension/DimensionOptionsRegistryHolder;)V"), index = 1) | ||
private static DimensionOptionsRegistryHolder fantasy$wrapWorldGenSettings(DimensionOptionsRegistryHolder original) { | ||
var dimensions = original.dimensions(); | ||
var saveDimensions = Maps.filterEntries(dimensions, entry -> FantasyDimensionOptions.SAVE_PROPERTIES_PREDICATE.test(entry.getValue())); | ||
|
||
return new DimensionOptionsRegistryHolder(saveDimensions); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.