2020-05-06 11:48:49 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2018-06-06 04:48:27 +02:00
|
|
|
From: Aikar <aikar@aikar.co>
|
|
|
|
Date: Tue, 5 Jun 2018 22:47:26 -0400
|
|
|
|
Subject: [PATCH] WitchReadyPotionEvent
|
|
|
|
|
|
|
|
|
2021-03-16 08:19:45 +01:00
|
|
|
diff --git a/src/main/java/net/minecraft/world/entity/monster/EntityWitch.java b/src/main/java/net/minecraft/world/entity/monster/EntityWitch.java
|
|
|
|
index 2e65f6107ffecfe00c9c09baa60dec3021aac527..c6d79125e7dd982fc528ce61144005194cbaa323 100644
|
|
|
|
--- a/src/main/java/net/minecraft/world/entity/monster/EntityWitch.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/entity/monster/EntityWitch.java
|
|
|
|
@@ -157,7 +157,11 @@ public class EntityWitch extends EntityRaider implements IRangedEntity {
|
2018-06-06 04:48:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
if (potionregistry != null) {
|
|
|
|
- this.setSlot(EnumItemSlot.MAINHAND, PotionUtil.a(new ItemStack(Items.POTION), potionregistry));
|
|
|
|
+ // Paper start
|
|
|
|
+ ItemStack potion = PotionUtil.a(new ItemStack(Items.POTION), potionregistry);
|
|
|
|
+ org.bukkit.inventory.ItemStack bukkitStack = com.destroystokyo.paper.event.entity.WitchReadyPotionEvent.process((org.bukkit.entity.Witch) this.getBukkitEntity(), org.bukkit.craftbukkit.inventory.CraftItemStack.asCraftMirror(potion));
|
|
|
|
+ this.setSlot(EnumItemSlot.MAINHAND, org.bukkit.craftbukkit.inventory.CraftItemStack.asNMSCopy(bukkitStack));
|
|
|
|
+ // Paper end
|
2020-08-25 04:22:08 +02:00
|
|
|
this.bq = this.getItemInMainHand().k();
|
2020-06-25 16:09:55 +02:00
|
|
|
this.v(true);
|
|
|
|
if (!this.isSilent()) {
|