mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-17 21:33:49 -07:00
Update to Minecraft 1.12-pre2
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
+ // CraftBukkit end
|
||||
world.setTypeAndData(blockposition, Blocks.AIR.getBlockData(), 11);
|
||||
entityhuman.b(StatisticList.b((Item) this));
|
||||
entityhuman.a(SoundEffects.P, 1.0F, 1.0F);
|
||||
entityhuman.a(SoundEffects.S, 1.0F, 1.0F);
|
||||
- return new InteractionResultWrapper(EnumInteractionResult.SUCCESS, this.a(itemstack, entityhuman, Items.WATER_BUCKET));
|
||||
+ return new InteractionResultWrapper(EnumInteractionResult.SUCCESS, this.a(itemstack, entityhuman, Items.WATER_BUCKET, event.getItemStack())); // CraftBukkit
|
||||
} else if (material == Material.LAVA && ((Integer) iblockdata.get(BlockFluids.LEVEL)).intValue() == 0) {
|
||||
@@ -37,7 +37,7 @@
|
||||
+ return new InteractionResultWrapper(EnumInteractionResult.FAIL, itemstack);
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
entityhuman.a(SoundEffects.Q, 1.0F, 1.0F);
|
||||
entityhuman.a(SoundEffects.T, 1.0F, 1.0F);
|
||||
world.setTypeAndData(blockposition, Blocks.AIR.getBlockData(), 11);
|
||||
entityhuman.b(StatisticList.b((Item) this));
|
||||
- return new InteractionResultWrapper(EnumInteractionResult.SUCCESS, this.a(itemstack, entityhuman, Items.LAVA_BUCKET));
|
||||
@@ -51,10 +51,10 @@
|
||||
return new InteractionResultWrapper(EnumInteractionResult.FAIL, itemstack);
|
||||
- } else if (this.a(entityhuman, world, blockposition1)) {
|
||||
+ } else if (this.a(entityhuman, world, blockposition1, movingobjectposition.direction, blockposition, itemstack)) { // CraftBukkit
|
||||
entityhuman.b(StatisticList.b((Item) this));
|
||||
return !entityhuman.abilities.canInstantlyBuild ? new InteractionResultWrapper(EnumInteractionResult.SUCCESS, new ItemStack(Items.BUCKET)) : new InteractionResultWrapper(EnumInteractionResult.SUCCESS, itemstack);
|
||||
} else {
|
||||
@@ -63,16 +83,19 @@
|
||||
if (entityhuman instanceof EntityPlayer) {
|
||||
CriterionTriggers.x.a((EntityPlayer) entityhuman, blockposition, itemstack);
|
||||
}
|
||||
@@ -67,16 +87,19 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
}
|
||||
|
||||
return itemstack;
|
||||
@@ -80,7 +103,13 @@
|
||||
@@ -84,7 +107,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@
|
||||
if (this.a == Blocks.AIR) {
|
||||
return false;
|
||||
} else {
|
||||
@@ -92,6 +121,15 @@
|
||||
@@ -96,6 +125,15 @@
|
||||
if (!world.isEmpty(blockposition) && !flag && !flag1) {
|
||||
return false;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user