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

@@ -91,15 +91,7 @@
}
}
}
@@ -167,6 +199,7 @@
private void a(ItemStack itemstack, PotionRegistry potionregistry) {
EntityAreaEffectCloud entityareaeffectcloud = new EntityAreaEffectCloud(this.world, this.locX, this.locY, this.locZ);
+ entityareaeffectcloud.projectileSource = this.projectileSource; // CraftBukkit
entityareaeffectcloud.setSource(this.getShooter());
entityareaeffectcloud.setRadius(3.0F);
entityareaeffectcloud.setRadiusOnUse(-0.5F);
@@ -187,7 +220,14 @@
@@ -187,7 +219,14 @@
entityareaeffectcloud.setColor(nbttagcompound.getInt("CustomPotionColor"));
}