SPIGOT-3433: Improve AreaEffectCloud#getSource

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2017-07-22 09:51:22 +10:00
parent b4a099c163
commit 8bafc76ff2
3 changed files with 12 additions and 11 deletions

View File

@@ -72,3 +72,11 @@
}
}
@@ -202,6 +225,7 @@
if (!collection.isEmpty()) {
EntityAreaEffectCloud entityareaeffectcloud = new EntityAreaEffectCloud(this.world, this.locX, this.locY, this.locZ);
+ entityareaeffectcloud.setSource(this); // CraftBukkit
entityareaeffectcloud.setRadius(2.5F);
entityareaeffectcloud.setRadiusOnUse(-0.5F);
entityareaeffectcloud.setWaitTime(10);