SPIGOT-1288: Sounds played for cancelled BlockPlaceEvent

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2016-06-30 15:39:58 +10:00
parent 36998be28a
commit dc3f10a9a0
2 changed files with 23 additions and 6 deletions

View File

@@ -0,0 +1,11 @@
--- a/net/minecraft/server/ItemBlock.java
+++ b/net/minecraft/server/ItemBlock.java
@@ -36,7 +36,7 @@
SoundEffectType soundeffecttype = this.a.w();
- world.a(entityhuman, blockposition, soundeffecttype.e(), SoundCategory.BLOCKS, (soundeffecttype.a() + 1.0F) / 2.0F, soundeffecttype.b() * 0.8F);
+ // world.a(entityhuman, blockposition, soundeffecttype.e(), SoundCategory.BLOCKS, (soundeffecttype.a() + 1.0F) / 2.0F, soundeffecttype.b() * 0.8F); // CraftBukkit - SPIGOT-1288
--itemstack.count;
}