Browse Source

Derp missing parantheses

master
Robotia 9 years ago
parent
commit
8133296c8d
  1. 13
      patches/net/minecraft/item/ItemBucket.java.patch

13
patches/net/minecraft/item/ItemBucket.java.patch

@ -14,14 +14,13 @@
public class ItemBucket extends Item public class ItemBucket extends Item
{ {
private Block isFull; private Block isFull;
@@ -19,7 +26,14 @@ @@ -19,7 +26,13 @@
public ItemBucket(Block p_i45331_1_) public ItemBucket(Block p_i45331_1_)
{ {
- this.maxStackSize = 1; - this.maxStackSize = 1;
+ // PaperSpigot start - Stackable Buckets + // PaperSpigot start - Stackable Buckets
+ if ((block == Blocks.LAVA) || + if ((block == Blocks.LAVA) || (block == Blocks.WATER)) {
+ (block == Blocks.WATER) {
+ this.maxStackSize = org.bukkit.Material.BUCKET.getMaxStackSize(); + this.maxStackSize = org.bukkit.Material.BUCKET.getMaxStackSize();
+ } else { + } else {
+ this.maxStackSize = 1; + this.maxStackSize = 1;
@ -30,7 +29,7 @@
this.isFull = p_i45331_1_; this.isFull = p_i45331_1_;
this.setCreativeTab(CreativeTabs.tabMisc); this.setCreativeTab(CreativeTabs.tabMisc);
} }
@@ -83,23 +97,52 @@ @@ -83,23 +96,52 @@
if (material == Material.water && l == 0) if (material == Material.water && l == 0)
{ {
@ -86,7 +85,7 @@
if (movingobjectposition.sideHit == 0) if (movingobjectposition.sideHit == 0)
{ {
--j; --j;
@@ -135,9 +178,19 @@ @@ -135,9 +177,19 @@
return p_77659_1_; return p_77659_1_;
} }
@ -107,7 +106,7 @@
} }
} }
} }
@@ -146,24 +199,32 @@ @@ -146,24 +198,32 @@
} }
} }
@ -147,7 +146,7 @@
} }
} }
@@ -207,4 +268,4 @@ @@ -207,4 +267,4 @@
} }
} }
} }

Loading…
Cancel
Save