diff options
author | Owen1212055 <[email protected]> | 2021-04-22 07:43:58 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2021-04-22 11:43:58 +0000 |
commit | 3f63bde0cd4341aee6637c028cf4fe1614fe605a (patch) | |
tree | 800cb949f9ffdb13c3e0640519c9bd069cf5cf6e | |
parent | 3523f0fda99ab8bac5547ca0c49a6b4f564ff288 (diff) | |
download | Paper-3f63bde0cd4341aee6637c028cf4fe1614fe605a.tar.gz Paper-3f63bde0cd4341aee6637c028cf4fe1614fe605a.zip |
Set Area Effect Cloud Rotation (#5462)
-rw-r--r-- | Spigot-Server-Patches/0705-Set-area-affect-cloud-rotation.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Spigot-Server-Patches/0705-Set-area-affect-cloud-rotation.patch b/Spigot-Server-Patches/0705-Set-area-affect-cloud-rotation.patch new file mode 100644 index 0000000000..e13e935029 --- /dev/null +++ b/Spigot-Server-Patches/0705-Set-area-affect-cloud-rotation.patch @@ -0,0 +1,18 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Owen1212055 <[email protected]> +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 05098332d83b1abfaa0a6d3bd4a9e801ea90d2ad..6c2a4607028c61e4a01ff200d301878e2d63b456 100644 +--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java ++++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +@@ -1977,6 +1977,7 @@ 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); + } |