Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-16 11:30:06 +01:00
Fix missed diff in TileEntityHopper
Dieser Commit ist enthalten in:
Ursprung
3c4481aa87
Commit
f5643a1d34
22
CraftBukkit-Patches/0124-Fix-missed-diff-in-TileEntityHopper.patch
Normale Datei
22
CraftBukkit-Patches/0124-Fix-missed-diff-in-TileEntityHopper.patch
Normale Datei
@ -0,0 +1,22 @@
|
||||
From bac29928953da2120a3ed79f9404d7495a44f29b Mon Sep 17 00:00:00 2001
|
||||
From: Thinkofdeath <thethinkofdeath@gmail.com>
|
||||
Date: Mon, 24 Mar 2014 11:59:59 +0000
|
||||
Subject: [PATCH] Fix missed diff in TileEntityHopper
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/TileEntityHopper.java b/src/main/java/net/minecraft/server/TileEntityHopper.java
|
||||
index 8ace84f..fed4ece 100644
|
||||
--- a/src/main/java/net/minecraft/server/TileEntityHopper.java
|
||||
+++ b/src/main/java/net/minecraft/server/TileEntityHopper.java
|
||||
@@ -265,7 +265,7 @@ public class TileEntityHopper extends TileEntity implements IHopper {
|
||||
InventoryMoveItemEvent event = new InventoryMoveItemEvent(this.getOwner().getInventory(), oitemstack.clone(), destinationInventory, true);
|
||||
this.getWorld().getServer().getPluginManager().callEvent(event);
|
||||
if (event.isCancelled()) {
|
||||
- this.setItem(i, itemstack);
|
||||
+ this.setItem(j, itemstack); // Spigot i -> j
|
||||
this.c(world.spigotConfig.hopperTransfer); // Spigot
|
||||
return false;
|
||||
}
|
||||
--
|
||||
1.8.5.2.msysgit.0
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren