aboutsummaryrefslogtreecommitdiffhomepage
path: root/CraftBukkit-Patches/0056-Clear-Flower-Pot-on-Drop.patch
blob: b8eca2bbf1fc8868a26c6da27b6a3b72dba22a87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From 637213b1e02c328eefbae1054599e223cd71817e Mon Sep 17 00:00:00 2001
From: md_5 <md_5@live.com.au>
Date: Tue, 3 Dec 2013 11:07:48 +1100
Subject: [PATCH] Clear Flower Pot on Drop


diff --git a/src/main/java/net/minecraft/server/BlockFlowerPot.java b/src/main/java/net/minecraft/server/BlockFlowerPot.java
index aa82a50..e468eb8 100644
--- a/src/main/java/net/minecraft/server/BlockFlowerPot.java
+++ b/src/main/java/net/minecraft/server/BlockFlowerPot.java
@@ -90,6 +90,7 @@ public class BlockFlowerPot extends BlockContainer {
 
         if (tileentityflowerpot != null && tileentityflowerpot.a() != null) {
             this.a(world, i, j, k, new ItemStack(tileentityflowerpot.a(), 1, tileentityflowerpot.b()));
+            tileentityflowerpot.a( null, 0 ); // Spigot
         }
 
         super.remove(world, i, j, k, block, l);
-- 
1.9.1