@@ -1,17 +1,18 @@
|
||||
--- a/net/minecraft/server/EntityAreaEffectCloud.java
|
||||
+++ b/net/minecraft/server/EntityAreaEffectCloud.java
|
||||
@@ -13,6 +13,10 @@
|
||||
import javax.annotation.Nullable;
|
||||
@@ -14,6 +14,11 @@
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
+// CraftBukkit start
|
||||
+import org.bukkit.craftbukkit.entity.CraftLivingEntity;
|
||||
+import org.bukkit.entity.LivingEntity;
|
||||
+// CraftBukkit end
|
||||
|
||||
+
|
||||
public class EntityAreaEffectCloud extends Entity {
|
||||
|
||||
@@ -105,6 +109,22 @@
|
||||
private static final Logger LOGGER = LogManager.getLogger();
|
||||
@@ -105,6 +110,22 @@
|
||||
|
||||
}
|
||||
|
||||
@@ -34,7 +35,7 @@
|
||||
public int getColor() {
|
||||
return (Integer) this.getDataWatcher().get(EntityAreaEffectCloud.COLOR);
|
||||
}
|
||||
@@ -249,6 +269,7 @@
|
||||
@@ -249,6 +270,7 @@
|
||||
if (!list1.isEmpty()) {
|
||||
Iterator iterator2 = list1.iterator();
|
||||
|
||||
@@ -42,7 +43,7 @@
|
||||
while (iterator2.hasNext()) {
|
||||
EntityLiving entityliving = (EntityLiving) iterator2.next();
|
||||
|
||||
@@ -258,6 +279,17 @@
|
||||
@@ -258,6 +280,17 @@
|
||||
double d2 = d0 * d0 + d1 * d1;
|
||||
|
||||
if (d2 <= (double) (f * f)) {
|
||||
@@ -60,7 +61,7 @@
|
||||
this.affectedEntities.put(entityliving, this.ticksLived + this.reapplicationDelay);
|
||||
Iterator iterator3 = list.iterator();
|
||||
|
||||
@@ -267,7 +299,7 @@
|
||||
@@ -267,7 +300,7 @@
|
||||
if (mobeffect1.getMobEffect().isInstant()) {
|
||||
mobeffect1.getMobEffect().applyInstantEffect(this, this.getSource(), entityliving, mobeffect1.getAmplifier(), 0.5D);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user