summaryrefslogtreecommitdiffstats
path: root/nms-patches/DispenseBehaviorItem.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/DispenseBehaviorItem.patch')
-rw-r--r--nms-patches/DispenseBehaviorItem.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/nms-patches/DispenseBehaviorItem.patch b/nms-patches/DispenseBehaviorItem.patch
index 61fe049e..f325425f 100644
--- a/nms-patches/DispenseBehaviorItem.patch
+++ b/nms-patches/DispenseBehaviorItem.patch
@@ -18,7 +18,7 @@
- a(isourceblock.getWorld(), itemstack1, 6, enumdirection, iposition);
+ // CraftBukkit start
+ if (!a(isourceblock.getWorld(), itemstack1, 6, enumdirection, isourceblock)) {
-+ itemstack.count++;
++ itemstack.add(1);
+ }
+ // CraftBukkit end
return itemstack;