mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-26 11:07:53 +01:00
Correct visual ID when overriding in PlayerBlockPlaceEvent
This commit is contained in:
parent
263713ab49
commit
365cdf7818
@ -101,6 +101,7 @@ public class BlockPlacementListener {
|
||||
short customBlockId = playerBlockPlaceEvent.getCustomBlockId();
|
||||
if(customBlockId != 0) {
|
||||
instance.setCustomBlock(blockPosition.getX(), blockPosition.getY(), blockPosition.getZ(), playerBlockPlaceEvent.getCustomBlockId());
|
||||
instance.refreshBlockId(blockPosition, playerBlockPlaceEvent.getBlockId());
|
||||
} else {
|
||||
instance.setBlock(blockPosition.getX(), blockPosition.getY(), blockPosition.getZ(), playerBlockPlaceEvent.getBlockId());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user