2f92d4e00e
Upstream has released updates that appear to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Bukkit Changes: 01bb6ba7 PR-936: Add new PersistentDataContainer methods and clean up docs bc145b90 PR-940: Create registry for banner pattern and cat type CraftBukkit Changes: cb2ea54de SPIGOT-7440, PR-1292: Fire EntityTeleportEvent for end gateways 4fea66e44 PR-1299: Add new PersistentDataContainer methods and clean up docs b483a20db PR-1303: Create registry for banner pattern and cat type 4642dd526 SPIGOT-7535: Fix maps not having an ID and also call MapInitializeEvent in more places
27 Zeilen
887 B
Diff
27 Zeilen
887 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: SoSeDiK <mrsosedik@gmail.com>
|
|
Date: Wed, 12 Oct 2022 00:36:55 +0300
|
|
Subject: [PATCH] Allow changing bed's 'occupied' property
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/block/data/type/Bed.java b/src/main/java/org/bukkit/block/data/type/Bed.java
|
|
index ed519bfebe5b921f60867a3900edfce9859058b6..6e7a456dc5e9bfc28a19029a3381e53fa6453d30 100644
|
|
--- a/src/main/java/org/bukkit/block/data/type/Bed.java
|
|
+++ b/src/main/java/org/bukkit/block/data/type/Bed.java
|
|
@@ -35,6 +35,15 @@ public interface Bed extends Directional {
|
|
*/
|
|
boolean isOccupied();
|
|
|
|
+ // Paper start
|
|
+ /**
|
|
+ * Sets the value of the 'occupied' property.
|
|
+ *
|
|
+ * @param occupied the new 'occupied' value
|
|
+ */
|
|
+ void setOccupied(boolean occupied);
|
|
+ // Paper end
|
|
+
|
|
/**
|
|
* Horizontal half of a bed.
|
|
*/
|