mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-01 02:41:25 +01:00
Fix a few cases of the vanilla mob goals
This commit is contained in:
parent
a1d90ea32f
commit
952a2225df
@ -279,6 +279,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+
|
+
|
||||||
+ ignored.add("goal_selector_1");
|
+ ignored.add("goal_selector_1");
|
||||||
+ ignored.add("goal_selector_2");
|
+ ignored.add("goal_selector_2");
|
||||||
|
+ ignored.add("selector_1");
|
||||||
|
+ ignored.add("selector_2");
|
||||||
+ ignored.add("wrapped");
|
+ ignored.add("wrapped");
|
||||||
+
|
+
|
||||||
+ bukkitMap.put(net.minecraft.world.entity.Mob.class, Mob.class);
|
+ bukkitMap.put(net.minecraft.world.entity.Mob.class, Mob.class);
|
||||||
@ -396,6 +398,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
+ name = name.replace("PathfinderGoal", "");
|
+ name = name.replace("PathfinderGoal", "");
|
||||||
|
+ name = name.replace("TargetGoal", "");
|
||||||
|
+ name = name.replace("Goal", "");
|
||||||
+ StringBuilder sb = new StringBuilder();
|
+ StringBuilder sb = new StringBuilder();
|
||||||
+ for (char c : name.toCharArray()) {
|
+ for (char c : name.toCharArray()) {
|
||||||
+ if (c >= 'A' && c <= 'Z') {
|
+ if (c >= 'A' && c <= 'Z') {
|
||||||
|
Loading…
Reference in New Issue
Block a user