geforkt von Mirrors/Paper
Fix the removal of potion effects
Dieser Commit ist enthalten in:
Ursprung
c70bb68362
Commit
9b863cd5f2
22
CraftBukkit-Patches/0123-Fix-the-removal-of-potion-effects.patch
Normale Datei
22
CraftBukkit-Patches/0123-Fix-the-removal-of-potion-effects.patch
Normale Datei
@ -0,0 +1,22 @@
|
|||||||
|
From 1b2806d422da014c43d5be4fc2bc3c58a677614f Mon Sep 17 00:00:00 2001
|
||||||
|
From: Thinkofdeath <thethinkofdeath@gmail.com>
|
||||||
|
Date: Sun, 23 Mar 2014 09:47:24 +0000
|
||||||
|
Subject: [PATCH] Fix the removal of potion effects
|
||||||
|
|
||||||
|
|
||||||
|
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
|
||||||
|
index c1f1782..8d8a4ec 100644
|
||||||
|
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
|
||||||
|
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
|
||||||
|
@@ -280,7 +280,7 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
|
||||||
|
}
|
||||||
|
|
||||||
|
public void removePotionEffect(PotionEffectType type) {
|
||||||
|
- getHandle().m(type.getId()); // Should be removeEffect.
|
||||||
|
+ getHandle().removeEffect(type.getId()); // Spigot - Fix mapping
|
||||||
|
}
|
||||||
|
|
||||||
|
public Collection<PotionEffect> getActivePotionEffects() {
|
||||||
|
--
|
||||||
|
1.8.5.2.msysgit.0
|
||||||
|
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren