diff options
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; } |