summaryrefslogtreecommitdiffstats
path: root/nms-patches/SlotFurnaceResult.patch
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-07-15 10:00:00 +1000
committermd_5 <git@md-5.net>2018-07-15 10:00:00 +1000
commit421c1728c81e2f729dff88da2ac96535d2b8e5e8 (patch)
tree6c51d93e811d1eb86b68461a42fc5cf03b168b0c /nms-patches/SlotFurnaceResult.patch
parent57ab4cfc6f4ff526d44319d9b8c79f6848db2de7 (diff)
downloadcraftbukkit-421c1728c81e2f729dff88da2ac96535d2b8e5e8.tar
craftbukkit-421c1728c81e2f729dff88da2ac96535d2b8e5e8.tar.gz
craftbukkit-421c1728c81e2f729dff88da2ac96535d2b8e5e8.tar.lz
craftbukkit-421c1728c81e2f729dff88da2ac96535d2b8e5e8.tar.xz
craftbukkit-421c1728c81e2f729dff88da2ac96535d2b8e5e8.zip
Update to Minecraft 1.13-pre7
Diffstat (limited to 'nms-patches/SlotFurnaceResult.patch')
-rw-r--r--nms-patches/SlotFurnaceResult.patch40
1 files changed, 20 insertions, 20 deletions
diff --git a/nms-patches/SlotFurnaceResult.patch b/nms-patches/SlotFurnaceResult.patch
index bcc110d7..eee722f9 100644
--- a/nms-patches/SlotFurnaceResult.patch
+++ b/nms-patches/SlotFurnaceResult.patch
@@ -1,32 +1,32 @@
--- a/net/minecraft/server/SlotFurnaceResult.java
+++ b/net/minecraft/server/SlotFurnaceResult.java
-@@ -1,5 +1,10 @@
- package net.minecraft.server;
+@@ -2,6 +2,10 @@
+ import java.util.Iterator;
+ import java.util.Map.Entry;
+// CraftBukkit start
+import org.bukkit.entity.Player;
+import org.bukkit.event.inventory.FurnaceExtractEvent;
+// CraftBukkit end
-+
+
public class SlotFurnaceResult extends Slot {
- private final EntityHuman a;
-@@ -51,6 +56,18 @@
- i = j;
- }
+@@ -66,6 +70,18 @@
+ i = j;
+ }
-+ // CraftBukkit start - fire FurnaceExtractEvent
-+ Player player = (Player) a.getBukkitEntity();
-+ TileEntityFurnace furnace = ((TileEntityFurnace) this.inventory);
-+ org.bukkit.block.Block block = a.world.getWorld().getBlockAt(furnace.position.getX(), furnace.position.getY(), furnace.position.getZ());
++ // CraftBukkit start - fire FurnaceExtractEvent
++ Player player = (Player) a.getBukkitEntity();
++ TileEntityFurnace furnace = ((TileEntityFurnace) this.inventory);
++ org.bukkit.block.Block block = a.world.getWorld().getBlockAt(furnace.position.getX(), furnace.position.getY(), furnace.position.getZ());
+
-+ if (b != 0) {
-+ FurnaceExtractEvent event = new FurnaceExtractEvent(player, block, org.bukkit.craftbukkit.util.CraftMagicNumbers.getMaterial(itemstack.getItem()), b, i);
-+ a.world.getServer().getPluginManager().callEvent(event);
-+ i = event.getExpToDrop();
-+ }
-+ // CraftBukkit end
++ if (b != 0) {
++ FurnaceExtractEvent event = new FurnaceExtractEvent(player, block, org.bukkit.craftbukkit.util.CraftMagicNumbers.getMaterial(itemstack.getItem()), b, i);
++ a.world.getServer().getPluginManager().callEvent(event);
++ i = event.getExpToDrop();
++ }
++ // CraftBukkit end
+
- while (i > 0) {
- j = EntityExperienceOrb.getOrbValue(i);
- i -= j;
+ while (i > 0) {
+ j = EntityExperienceOrb.getOrbValue(i);
+ i -= j;