diff options
author | md_5 <git@md-5.net> | 2016-03-01 08:32:46 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-03-01 09:32:45 +1100 |
commit | aa008dff0f9bedbe88e1fe79831776b0a52eb90a (patch) | |
tree | cb520e0f4cc5d683fb9b7fb95de37480a7443dfb /nms-patches/BlockOre.patch | |
parent | e1ebe524a78e27f6a2829ed4574fded3779094e1 (diff) | |
download | craftbukkit-aa008dff0f9bedbe88e1fe79831776b0a52eb90a.tar craftbukkit-aa008dff0f9bedbe88e1fe79831776b0a52eb90a.tar.gz craftbukkit-aa008dff0f9bedbe88e1fe79831776b0a52eb90a.tar.lz craftbukkit-aa008dff0f9bedbe88e1fe79831776b0a52eb90a.tar.xz craftbukkit-aa008dff0f9bedbe88e1fe79831776b0a52eb90a.zip |
Update to Minecraft 1.9
Diffstat (limited to 'nms-patches/BlockOre.patch')
-rw-r--r-- | nms-patches/BlockOre.patch | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/nms-patches/BlockOre.patch b/nms-patches/BlockOre.patch index 4522722e..cbe3d905 100644 --- a/nms-patches/BlockOre.patch +++ b/nms-patches/BlockOre.patch @@ -8,7 +8,7 @@ if (this.getDropType(iblockdata, world.random, i) != Item.getItemOf(this)) { int j = 0; -@@ -54,9 +55,34 @@ +@@ -54,13 +55,42 @@ this.dropExperience(world, blockposition, j); } @@ -40,6 +40,14 @@ + // CraftBukkit end + } + - public int getDropData(World world, BlockPosition blockposition) { - return 0; + public ItemStack a(World world, BlockPosition blockposition, IBlockData iblockdata) { + return new ItemStack(this); + } + ++ public int getDropData(World world, BlockPosition blockposition) { ++ return 0; ++ } ++ + public int getDropData(IBlockData iblockdata) { + return this == Blocks.LAPIS_ORE ? EnumColor.BLUE.getInvColorIndex() : 0; } |