mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-18 17:07:43 +01:00
Upstream has released updates that appear to apply and compile correctly Paper Changes: 840e72091 [CI-SKIP] [Auto] Rebuild Patches a33232d4a Add beacon activation and deactivation events (#5121) bc7ea673a Add internal channel initialization listeners (#5557) b28ad17ac Check for world change in MoveEvent API methods 3095c7592 [Auto] Updated Upstream (CraftBukkit) f56989c97 Add RespawnFlags to PlayerRespawnEvent (#5533) 7579c2667 Add more API to PlayerMoveEvent (#5553)
37 lines
1.5 KiB
Diff
37 lines
1.5 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: BillyGalbreath <blake.galbreath@gmail.com>
|
|
Date: Wed, 6 Jan 2021 02:19:29 -0600
|
|
Subject: [PATCH] Fix rotating UP/DOWN CW and CCW
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/core/EnumDirection.java b/src/main/java/net/minecraft/core/EnumDirection.java
|
|
index 3ff1d8b3dfaeb875e5e70b97abb79a21f671f328..19bc37143140b4e3a06a87297205b702548b0fa3 100644
|
|
--- a/src/main/java/net/minecraft/core/EnumDirection.java
|
|
+++ b/src/main/java/net/minecraft/core/EnumDirection.java
|
|
@@ -127,6 +127,12 @@ public enum EnumDirection implements INamable {
|
|
return EnumDirection.NORTH;
|
|
case EAST:
|
|
return EnumDirection.SOUTH;
|
|
+ // Purpur start
|
|
+ case UP:
|
|
+ return EnumDirection.UP;
|
|
+ case DOWN:
|
|
+ return EnumDirection.DOWN;
|
|
+ // Purpur end
|
|
default:
|
|
throw new IllegalStateException("Unable to get Y-rotated facing of " + this);
|
|
}
|
|
@@ -143,6 +149,12 @@ public enum EnumDirection implements INamable {
|
|
return EnumDirection.SOUTH;
|
|
case EAST:
|
|
return EnumDirection.NORTH;
|
|
+ // Purpur start
|
|
+ case UP:
|
|
+ return EnumDirection.UP;
|
|
+ case DOWN:
|
|
+ return EnumDirection.DOWN;
|
|
+ // Purpur end
|
|
default:
|
|
throw new IllegalStateException("Unable to get CCW facing of " + this);
|
|
}
|