mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 20:23:53 -07:00
Update to Minecraft 1.13-pre7
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/server/EntityAreaEffectCloud.java
|
||||
+++ b/net/minecraft/server/EntityAreaEffectCloud.java
|
||||
@@ -8,6 +8,10 @@
|
||||
@@ -10,6 +10,10 @@
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
@@ -10,15 +10,15 @@
|
||||
+
|
||||
import java.util.Map.Entry;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@@ -101,6 +105,22 @@
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
@@ -102,6 +106,22 @@
|
||||
|
||||
}
|
||||
|
||||
+ // CraftBukkit start accessor methods
|
||||
+ public void refreshEffects() {
|
||||
+ if (!this.hasColor) {
|
||||
+ this.getDataWatcher().set(EntityAreaEffectCloud.b, Integer.valueOf(PotionUtil.a((Collection) PotionUtil.a(this.potionRegistry, (Collection) this.effects)))); // PAIL: rename
|
||||
+ this.getDataWatcher().set(EntityAreaEffectCloud.c, Integer.valueOf(PotionUtil.a((Collection) PotionUtil.a(this.potionRegistry, (Collection) this.effects)))); // PAIL: rename
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
@@ -32,9 +32,9 @@
|
||||
+ // CraftBukkit end
|
||||
+
|
||||
public int getColor() {
|
||||
return ((Integer) this.getDataWatcher().get(EntityAreaEffectCloud.b)).intValue();
|
||||
return ((Integer) this.getDataWatcher().get(EntityAreaEffectCloud.c)).intValue();
|
||||
}
|
||||
@@ -270,6 +290,7 @@
|
||||
@@ -245,6 +265,7 @@
|
||||
if (!list.isEmpty()) {
|
||||
Iterator iterator2 = list.iterator();
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
while (iterator2.hasNext()) {
|
||||
EntityLiving entityliving = (EntityLiving) iterator2.next();
|
||||
|
||||
@@ -279,6 +300,17 @@
|
||||
@@ -254,6 +275,17 @@
|
||||
double d2 = d0 * d0 + d1 * d1;
|
||||
|
||||
if (d2 <= (double) (f * f)) {
|
||||
@@ -57,6 +57,6 @@
|
||||
+ if (entity instanceof CraftLivingEntity) {
|
||||
+ EntityLiving entityliving = ((CraftLivingEntity) entity).getHandle();
|
||||
+ // CraftBukkit end
|
||||
this.at.put(entityliving, Integer.valueOf(this.ticksLived + this.reapplicationDelay));
|
||||
this.h.put(entityliving, Integer.valueOf(this.ticksLived + this.reapplicationDelay));
|
||||
Iterator iterator3 = arraylist.iterator();
|
||||
|
||||
|
Reference in New Issue
Block a user