#1321: Clean up some stuff which got missed during previous PRs
- Add missing CraftBukkit comment to CommandGive - Remove no longer needed IRegistryCustom from CraftStructure conversion - Use setBasePotionType instead of deprecated setBasePotionData By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
@@ -87,7 +87,6 @@ import org.bukkit.event.entity.EntityPotionEffectEvent;
|
||||
import org.bukkit.event.player.PlayerTeleportEvent;
|
||||
import org.bukkit.inventory.EntityEquipment;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.potion.PotionData;
|
||||
import org.bukkit.potion.PotionEffect;
|
||||
import org.bukkit.potion.PotionEffectType;
|
||||
import org.bukkit.potion.PotionType;
|
||||
@@ -436,7 +435,7 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
|
||||
} else if (AbstractArrow.class.isAssignableFrom(projectile)) {
|
||||
if (TippedArrow.class.isAssignableFrom(projectile)) {
|
||||
launch = new EntityTippedArrow(world, getHandle(), new net.minecraft.world.item.ItemStack(net.minecraft.world.item.Items.ARROW));
|
||||
((Arrow) launch.getBukkitEntity()).setBasePotionData(new PotionData(PotionType.WATER, false, false));
|
||||
((Arrow) launch.getBukkitEntity()).setBasePotionType(PotionType.WATER);
|
||||
} else if (SpectralArrow.class.isAssignableFrom(projectile)) {
|
||||
launch = new EntitySpectralArrow(world, getHandle(), new net.minecraft.world.item.ItemStack(net.minecraft.world.item.Items.SPECTRAL_ARROW));
|
||||
} else if (Trident.class.isAssignableFrom(projectile)) {
|
||||
|
||||
Reference in New Issue
Block a user