Mirror von
https://github.com/Moulberry/AxiomPaperPlugin.git
synchronisiert 2024-11-14 04:00:05 +01:00
Also call setPlacedBy, used by some block entities (like player skull) to update properties
Dieser Commit ist enthalten in:
Ursprung
53ee4ee813
Commit
f81bf5c8c5
@ -257,7 +257,12 @@ public class SetBlockPacketListener implements PluginMessageListener {
|
||||
}
|
||||
|
||||
if (!breaking) {
|
||||
BlockItem.updateCustomBlockEntityTag(player.level(), player, blockPlaceContext.getClickedPos(), player.getItemInHand(hand));
|
||||
BlockPos clickedPos = blockPlaceContext.getClickedPos();
|
||||
ItemStack inHand = player.getItemInHand(hand);
|
||||
BlockState blockState = player.level().getBlockState(clickedPos);
|
||||
|
||||
BlockItem.updateCustomBlockEntityTag(player.level(), player, clickedPos, inHand);
|
||||
blockState.getBlock().setPlacedBy(player.level(), clickedPos, blockState, player, inHand);
|
||||
}
|
||||
|
||||
if (sequenceId >= 0) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren