mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 00:22:08 -07:00
Update to Minecraft 1.13-pre7
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
--- a/net/minecraft/server/BlockOre.java
|
||||
+++ b/net/minecraft/server/BlockOre.java
|
||||
@@ -37,6 +37,7 @@
|
||||
@@ -32,6 +32,7 @@
|
||||
|
||||
public void dropNaturally(World world, BlockPosition blockposition, IBlockData iblockdata, float f, int i) {
|
||||
super.dropNaturally(world, blockposition, iblockdata, f, i);
|
||||
public void dropNaturally(IBlockData iblockdata, World world, BlockPosition blockposition, float f, int i) {
|
||||
super.dropNaturally(iblockdata, world, blockposition, f, i);
|
||||
+ /* CraftBukkit start - Delegated to getExpDrop
|
||||
if (this.getDropType(iblockdata, world.random, i) != Item.getItemOf(this)) {
|
||||
if (this.getDropType(iblockdata, world, blockposition, i) != this) {
|
||||
int j = 0;
|
||||
|
||||
@@ -54,9 +55,34 @@
|
||||
@@ -49,9 +50,34 @@
|
||||
|
||||
this.dropExperience(world, blockposition, j);
|
||||
}
|
||||
@@ -17,8 +17,8 @@
|
||||
}
|
||||
|
||||
+ @Override
|
||||
+ public int getExpDrop(World world, IBlockData iblockdata, int i) {
|
||||
+ if (this.getDropType(iblockdata, world.random, i) != Item.getItemOf(this)) {
|
||||
+ public int getExpDrop(IBlockData iblockdata, World world, BlockPosition blockposition, int enchantmentLevel) {
|
||||
+ if (this.getDropType(iblockdata, world, blockposition, enchantmentLevel) != this) {
|
||||
+ int j = 0;
|
||||
+
|
||||
+ if (this == Blocks.COAL_ORE) {
|
||||
@@ -29,7 +29,7 @@
|
||||
+ j = MathHelper.nextInt(world.random, 3, 7);
|
||||
+ } else if (this == Blocks.LAPIS_ORE) {
|
||||
+ j = MathHelper.nextInt(world.random, 2, 5);
|
||||
+ } else if (this == Blocks.QUARTZ_ORE) {
|
||||
+ } else if (this == Blocks.NETHER_QUARTZ_ORE) {
|
||||
+ j = MathHelper.nextInt(world.random, 2, 5);
|
||||
+ }
|
||||
+
|
||||
@@ -40,6 +40,6 @@
|
||||
+ // CraftBukkit end
|
||||
+ }
|
||||
+
|
||||
public ItemStack a(World world, BlockPosition blockposition, IBlockData iblockdata) {
|
||||
public ItemStack a(IBlockAccess iblockaccess, BlockPosition blockposition, IBlockData iblockdata) {
|
||||
return new ItemStack(this);
|
||||
}
|
||||
|
Reference in New Issue
Block a user