13
0
geforkt von Mirrors/Paper

Fix a few cases of the vanilla mob goals

Dieser Commit ist enthalten in:
MiniDigger | Martin 2021-06-16 00:47:05 +02:00
Ursprung a1d90ea32f
Commit 952a2225df

Datei anzeigen

@ -279,6 +279,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+
+ ignored.add("goal_selector_1");
+ ignored.add("goal_selector_2");
+ ignored.add("selector_1");
+ ignored.add("selector_2");
+ ignored.add("wrapped");
+
+ bukkitMap.put(net.minecraft.world.entity.Mob.class, Mob.class);
@ -396,6 +398,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ }
+ }
+ name = name.replace("PathfinderGoal", "");
+ name = name.replace("TargetGoal", "");
+ name = name.replace("Goal", "");
+ StringBuilder sb = new StringBuilder();
+ for (char c : name.toCharArray()) {
+ if (c >= 'A' && c <= 'Z') {