Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 12:30:06 +01:00
SPIGOT-2989: Use correct Horse Inventory
Dieser Commit ist enthalten in:
Ursprung
9b9a43e472
Commit
849653ebac
@ -1,4 +1,4 @@
|
|||||||
From d820d766f014a27f41905e911a148ac7024befaa Mon Sep 17 00:00:00 2001
|
From f95c6604570bf2aae757ad0509dc91a3c8bf30f1 Mon Sep 17 00:00:00 2001
|
||||||
From: Aikar <aikar@aikar.co>
|
From: Aikar <aikar@aikar.co>
|
||||||
Date: Mon, 2 Jan 2017 16:32:56 -0500
|
Date: Mon, 2 Jan 2017 16:32:56 -0500
|
||||||
Subject: [PATCH] ShulkerBox Dupe Prevention
|
Subject: [PATCH] ShulkerBox Dupe Prevention
|
22
Spigot-Server-Patches/0203-Use-correct-Horse-Inventory.patch
Normale Datei
22
Spigot-Server-Patches/0203-Use-correct-Horse-Inventory.patch
Normale Datei
@ -0,0 +1,22 @@
|
|||||||
|
From 09063ac1369f3d65a2f8d06964388ebb37afe991 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Aikar <aikar@aikar.co>
|
||||||
|
Date: Wed, 4 Jan 2017 21:19:42 -0500
|
||||||
|
Subject: [PATCH] Use correct Horse Inventory
|
||||||
|
|
||||||
|
|
||||||
|
diff --git a/src/main/java/net/minecraft/server/ContainerHorse.java b/src/main/java/net/minecraft/server/ContainerHorse.java
|
||||||
|
index 645f3e5b1..88e148991 100644
|
||||||
|
--- a/src/main/java/net/minecraft/server/ContainerHorse.java
|
||||||
|
+++ b/src/main/java/net/minecraft/server/ContainerHorse.java
|
||||||
|
@@ -21,7 +21,7 @@ public class ContainerHorse extends Container {
|
||||||
|
return bukkitEntity;
|
||||||
|
}
|
||||||
|
|
||||||
|
- CraftInventory inventory = new org.bukkit.craftbukkit.inventory.CraftInventoryHorse(this.a);
|
||||||
|
+ org.bukkit.inventory.Inventory inventory = ((org.bukkit.inventory.InventoryHolder) this.f.getBukkitEntity()).getInventory(); // Paper
|
||||||
|
return bukkitEntity = new CraftInventoryView(player.player.getBukkitEntity(), inventory, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
2.11.0
|
||||||
|
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren