Skip to content

Commit

Permalink
Fix the compatibility of Citizens plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Mgazul committed Jan 4, 2024
1 parent ad2a03d commit 17056c0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions patches/minecraft/net/minecraft/pathfinding/PathFinder.java.patch
Original file line number Diff line number Diff line change
@@ -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_);
2 changes: 1 addition & 1 deletion src/main/java/com/mohistmc/forge/addon/MohistMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -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" +
Expand Down

0 comments on commit 17056c0

Please sign in to comment.