From 17056c07e75a4c1ff76ffa9778dd534982d0f6d0 Mon Sep 17 00:00:00 2001 From: Mgazul Date: Thu, 4 Jan 2024 12:47:57 +0800 Subject: [PATCH] Fix the compatibility of Citizens plugin --- .../pathfinding/PathFinder.java.patch | 20 +++++++++++++++++++ .../com/mohistmc/forge/addon/MohistMod.java | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 patches/minecraft/net/minecraft/pathfinding/PathFinder.java.patch diff --git a/patches/minecraft/net/minecraft/pathfinding/PathFinder.java.patch b/patches/minecraft/net/minecraft/pathfinding/PathFinder.java.patch new file mode 100644 index 0000000000..d91ac88c4c --- /dev/null +++ b/patches/minecraft/net/minecraft/pathfinding/PathFinder.java.patch @@ -0,0 +1,20 @@ +--- ../src-base/minecraft/net/minecraft/pathfinding/PathFinder.java ++++ ../src-work/minecraft/net/minecraft/pathfinding/PathFinder.java +@@ -33,7 +33,7 @@ + } + + @Nullable +- private Path func_186334_a(IBlockAccess p_186334_1_, EntityLiving p_186334_2_, double p_186334_3_, double p_186334_5_, double p_186334_7_, float p_186334_9_) ++ public Path func_186334_a(IBlockAccess p_186334_1_, EntityLiving p_186334_2_, double p_186334_3_, double p_186334_5_, double p_186334_7_, float p_186334_9_) + { + this.field_75866_b.func_75848_a(); + this.field_176190_c.func_186315_a(p_186334_1_, p_186334_2_); +@@ -45,7 +45,7 @@ + } + + @Nullable +- private Path func_186335_a(PathPoint p_186335_1_, PathPoint p_186335_2_, float p_186335_3_) ++ public Path func_186335_a(PathPoint p_186335_1_, PathPoint p_186335_2_, float p_186335_3_) + { + p_186335_1_.field_75836_e = 0.0F; + p_186335_1_.field_75833_f = p_186335_1_.func_186281_c(p_186335_2_); diff --git a/src/main/java/com/mohistmc/forge/addon/MohistMod.java b/src/main/java/com/mohistmc/forge/addon/MohistMod.java index b35a7fdefb..4cc59c3156 100644 --- a/src/main/java/com/mohistmc/forge/addon/MohistMod.java +++ b/src/main/java/com/mohistmc/forge/addon/MohistMod.java @@ -29,7 +29,7 @@ public static InputStream modinfo() { " \"logoFile\": \"/mohist_logo.png\",\n" + " \"url\": \"https://mohistmc.com/\",\n" + " \"updateUrl\": \"\",\n" + - " \"authors\": [\"Mgazul\", \"CraftDream\", \"azbh111\", \"lliioollcn\", \"terrainwax\", \"lvyitian\", \"ChenHauShen\", \"Technetium\", \"Shawiiz_z\", \"Others\"],\n" + + " \"authors\": [\"MohistMC\"],\n" + " \"credits\": \"Made by MohistMC\",\n" + " \"parent\": \"\",\n" + " \"screenshots\": [],\n" +