forked from MinecraftForge/MinecraftForge
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First pass at exposing data fixers to modders.
Each mod gets its own version number, mods SHOULD NOT rely on other mod's fixers, just care about yourself. Walkers can use IDataFixerData to retrieve their version.
- Loading branch information
Showing
13 changed files
with
390 additions
and
28 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
10 changes: 10 additions & 0 deletions
10
patches/minecraft/net/minecraft/util/datafix/DataFixesManager.java.patch
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,10 @@ | ||
--- ../src-base/minecraft/net/minecraft/util/datafix/DataFixesManager.java | ||
+++ ../src-work/minecraft/net/minecraft/util/datafix/DataFixesManager.java | ||
@@ -158,6 +158,7 @@ | ||
public static DataFixer func_188279_a() | ||
{ | ||
DataFixer datafixer = new DataFixer(819); | ||
+ datafixer = new net.minecraftforge.common.util.CompoundDataFixer(datafixer); | ||
WorldInfo.func_189967_a(datafixer); | ||
EntityPlayer.func_189806_a(datafixer); | ||
AnvilChunkLoader.func_189889_a(datafixer); |
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
10 changes: 10 additions & 0 deletions
10
patches/minecraft/net/minecraft/world/gen/structure/template/Template.java.patch
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,10 @@ | ||
--- ../src-base/minecraft/net/minecraft/world/gen/structure/template/Template.java | ||
+++ ../src-work/minecraft/net/minecraft/world/gen/structure/template/Template.java | ||
@@ -520,6 +520,7 @@ | ||
p_189552_1_.func_74782_a("size", this.func_186267_a(new int[] {this.field_186272_c.func_177958_n(), this.field_186272_c.func_177956_o(), this.field_186272_c.func_177952_p()})); | ||
p_189552_1_.func_74778_a("author", this.field_186273_d); | ||
p_189552_1_.func_74768_a("DataVersion", 819); | ||
+ net.minecraftforge.fml.common.FMLCommonHandler.instance().getDataFixer().writeVersionData(p_189552_1_); | ||
return p_189552_1_; | ||
} | ||
|
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.