geforkt von Mirrors/Paper
Properly clear attributes on remove and death. Fixes BUKKIT-4416
By: EvilSeph <evilseph@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
48a3e72018
Commit
6addfb0dff
@ -275,12 +275,7 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void removePotionEffect(PotionEffectType type) {
|
public void removePotionEffect(PotionEffectType type) {
|
||||||
getHandle().effects.remove(type.getId());
|
getHandle().k(type.getId()); // Should be removeEffect.
|
||||||
getHandle().updateEffects = true;
|
|
||||||
if (getHandle() instanceof EntityPlayer) {
|
|
||||||
if (((EntityPlayer) getHandle()).playerConnection == null) return;
|
|
||||||
((EntityPlayer) getHandle()).playerConnection.sendPacket(new Packet42RemoveMobEffect(getHandle().id, new MobEffect(type.getId(), 0, 0)));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Collection<PotionEffect> getActivePotionEffects() {
|
public Collection<PotionEffect> getActivePotionEffects() {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren