mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-01 06:46:59 +01:00
Ignore block functions for skulls on BlockPlace. Fixes BUKKIT-3495
Skulls don't normally get block data applied to them, so we shouldn't apply it either.
This commit is contained in:
parent
899b9c17cc
commit
f20d6e3595
1 changed files with 2 additions and 1 deletions
|
@ -105,7 +105,8 @@ public class ItemBlock extends Item {
|
|||
|
||||
world.update(x, y, z, newId);
|
||||
|
||||
if (block != null) {
|
||||
// Skulls don't get block data applied to them
|
||||
if (block != null && block != Block.SKULL) {
|
||||
block.postPlace(world, x, y, z, entityhuman);
|
||||
block.postPlace(world, x, y, z, newData);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue