diff options
Diffstat (limited to 'nms-patches/EntityAreaEffectCloud.patch')
-rw-r--r-- | nms-patches/EntityAreaEffectCloud.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/nms-patches/EntityAreaEffectCloud.patch b/nms-patches/EntityAreaEffectCloud.patch new file mode 100644 index 00000000..0be2ccd8 --- /dev/null +++ b/nms-patches/EntityAreaEffectCloud.patch @@ -0,0 +1,25 @@ +--- a/net/minecraft/server/EntityAreaEffectCloud.java ++++ b/net/minecraft/server/EntityAreaEffectCloud.java +@@ -91,6 +91,22 @@ + + } + ++ // CraftBukkit start accessor methods ++ public void refreshEffects() { ++ if (!this.au) { ++ this.getDataWatcher().set(EntityAreaEffectCloud.b, Integer.valueOf(PotionUtil.a((Collection) PotionUtil.a(this.e, (Collection) this.effects)))); // PAIL: rename ++ } ++ } ++ ++ public String getType() { ++ return ((MinecraftKey) PotionRegistry.a.b(this.e)).toString(); // PAIL: rename ++ } ++ ++ public void setType(String string) { ++ a(PotionRegistry.a.get(new MinecraftKey(string))); // PAIL: rename ++ } ++ // CraftBukkit end ++ + public int getColor() { + return ((Integer) this.getDataWatcher().get(EntityAreaEffectCloud.b)).intValue(); + } |