mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 11:44:19 +01:00
25f3b50f6b
By: md_5 <git@md-5.net>
17 lines
580 B
Diff
17 lines
580 B
Diff
--- a/net/minecraft/world/effect/MobEffects.java
|
|
+++ b/net/minecraft/world/effect/MobEffects.java
|
|
@@ -69,6 +69,14 @@
|
|
return new MobEffect.a(22);
|
|
}));
|
|
|
|
+ // CraftBukkit start
|
|
+ static {
|
|
+ for (Object effect : IRegistry.MOB_EFFECT) {
|
|
+ org.bukkit.potion.PotionEffectType.registerPotionEffectType(new org.bukkit.craftbukkit.potion.CraftPotionEffectType((MobEffectList) effect));
|
|
+ }
|
|
+ }
|
|
+ // CraftBukkit end
|
|
+
|
|
public MobEffects() {}
|
|
|
|
private static MobEffectList register(int i, String s, MobEffectList mobeffectlist) {
|