geforkt von Mirrors/Paper
SPIGOT-2989: Use existing horse inventory object.
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
e63cab01fc
Commit
df1033f5f9
@ -1,10 +1,9 @@
|
|||||||
--- a/net/minecraft/server/ContainerHorse.java
|
--- a/net/minecraft/server/ContainerHorse.java
|
||||||
+++ b/net/minecraft/server/ContainerHorse.java
|
+++ b/net/minecraft/server/ContainerHorse.java
|
||||||
@@ -1,11 +1,33 @@
|
@@ -1,11 +1,31 @@
|
||||||
package net.minecraft.server;
|
package net.minecraft.server;
|
||||||
|
|
||||||
+// CraftBukkit start
|
+// CraftBukkit start
|
||||||
+import org.bukkit.craftbukkit.inventory.CraftInventory;
|
|
||||||
+import org.bukkit.craftbukkit.inventory.CraftInventoryView;
|
+import org.bukkit.craftbukkit.inventory.CraftInventoryView;
|
||||||
+import org.bukkit.inventory.InventoryView;
|
+import org.bukkit.inventory.InventoryView;
|
||||||
+// CraftBukkit end
|
+// CraftBukkit end
|
||||||
@ -24,8 +23,7 @@
|
|||||||
+ return bukkitEntity;
|
+ return bukkitEntity;
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ CraftInventory inventory = new org.bukkit.craftbukkit.inventory.CraftInventoryHorse(this.a);
|
+ return bukkitEntity = new CraftInventoryView(player.player.getBukkitEntity(), a.getOwner().getInventory(), this);
|
||||||
+ return bukkitEntity = new CraftInventoryView(player.player.getBukkitEntity(), inventory, this);
|
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
public ContainerHorse(IInventory iinventory, final IInventory iinventory1, final EntityHorseAbstract entityhorseabstract, EntityHuman entityhuman) {
|
public ContainerHorse(IInventory iinventory, final IInventory iinventory1, final EntityHorseAbstract entityhorseabstract, EntityHuman entityhuman) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren