mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-22 07:43:49 -07:00
@@ -1,15 +1,15 @@
|
||||
--- a/net/minecraft/server/BlockNote.java
|
||||
+++ b/net/minecraft/server/BlockNote.java
|
||||
@@ -24,7 +24,7 @@
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
if (flag != (Boolean) iblockdata.get(BlockNote.POWERED)) {
|
||||
if (flag) {
|
||||
if (flag1 != (Boolean) iblockdata.get(BlockNote.POWERED)) {
|
||||
if (flag1) {
|
||||
- this.play(world, blockposition);
|
||||
+ this.play(world, blockposition, iblockdata); // CraftBukkit
|
||||
}
|
||||
|
||||
world.setTypeAndData(blockposition, (IBlockData) iblockdata.set(BlockNote.POWERED, flag), 3);
|
||||
@@ -32,9 +32,14 @@
|
||||
world.setTypeAndData(blockposition, (IBlockData) iblockdata.set(BlockNote.POWERED, flag1), 3);
|
||||
@@ -35,9 +35,14 @@
|
||||
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
}
|
||||
|
||||
}
|
||||
@@ -45,7 +50,7 @@
|
||||
@@ -49,7 +54,7 @@
|
||||
} else {
|
||||
iblockdata = (IBlockData) iblockdata.a((IBlockState) BlockNote.NOTE);
|
||||
world.setTypeAndData(blockposition, iblockdata, 3);
|
||||
@@ -35,8 +35,8 @@
|
||||
entityhuman.a(StatisticList.TUNE_NOTEBLOCK);
|
||||
return true;
|
||||
}
|
||||
@@ -53,7 +58,7 @@
|
||||
|
||||
@@ -58,7 +63,7 @@
|
||||
@Override
|
||||
public void attack(IBlockData iblockdata, World world, BlockPosition blockposition, EntityHuman entityhuman) {
|
||||
if (!world.isClientSide) {
|
||||
- this.play(world, blockposition);
|
||||
|
Reference in New Issue
Block a user