From 9285c76055ed2fe5bbbbdb19cdf5d95bebb09754 Mon Sep 17 00:00:00 2001 From: Owen1212055 <23108066+Owen1212055@users.noreply.github.com> Date: Thu, 22 Apr 2021 07:43:58 -0400 Subject: [PATCH] Set Area Effect Cloud Rotation (#5462) --- .../Set-area-affect-cloud-rotation.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Spigot-Server-Patches/Set-area-affect-cloud-rotation.patch diff --git a/Spigot-Server-Patches/Set-area-affect-cloud-rotation.patch b/Spigot-Server-Patches/Set-area-affect-cloud-rotation.patch new file mode 100644 index 0000000000..717dcc3a49 --- /dev/null +++ b/Spigot-Server-Patches/Set-area-affect-cloud-rotation.patch @@ -0,0 +1,18 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Owen1212055 <23108066+Owen1212055@users.noreply.github.com> +Date: Mon, 5 Apr 2021 16:58:20 -0400 +Subject: [PATCH] Set area affect cloud rotation + + +diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 +--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java ++++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +@@ -0,0 +0,0 @@ public class CraftWorld implements World { + entity = EntityTypes.LIGHTNING_BOLT.a(world); + } else if (AreaEffectCloud.class.isAssignableFrom(clazz)) { + entity = new EntityAreaEffectCloud(world, x, y, z); ++ entity.setPositionRotation(x, y, z, yaw, pitch); // Paper - Set area effect cloud Rotation + } else if (EvokerFangs.class.isAssignableFrom(clazz)) { + entity = new EntityEvokerFangs(world, x, y, z, (float) Math.toRadians(yaw), 0, null); + }