mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-19 06:42:02 +01:00
parent
24ac86addd
commit
0df99cedeb
@ -51,8 +51,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
- if (flag2) {
|
||||
- entityplayer1.playerConnection.sendPacket(new PacketPlayOutNamedSoundEffect(SoundEffects.BLOCK_RESPAWN_ANCHOR_DEPLETE, SoundCategory.BLOCKS, (double) blockposition.getX(), (double) blockposition.getY(), (double) blockposition.getZ(), 1.0F, 1.0F));
|
||||
+ // Paper start - Fix SPIGOT-5989
|
||||
+ IBlockData data = worldserver1.getType(blockposition);
|
||||
+ if (flag2 && !isLocAltered) {
|
||||
+ IBlockData data = worldserver1.getType(blockposition);
|
||||
+ worldserver1.setTypeAndData(blockposition, data.set(BlockRespawnAnchor.a, data.get(BlockRespawnAnchor.a) - 1), 3);
|
||||
+ entityplayer1.playerConnection.sendPacket(new PacketPlayOutNamedSoundEffect(SoundEffects.BLOCK_RESPAWN_ANCHOR_DEPLETE, SoundCategory.BLOCKS, (double) location.getX(), (double) location.getY(), (double) location.getZ(), 1.0F, 1.0F));
|
||||
+ // Paper end
|
||||
|
Loading…
Reference in New Issue
Block a user