[SPIGOT-7303] Player#sendBlockChange doesn't work for Openable whenever being used as Openable Created: 19/Mar/23 Updated: 25/Dec/24 |
|
Status: | Open |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | Luis Benavides-Naranjo | Assignee: | Unassigned |
Resolution: | Unresolved | Votes: | 0 |
Labels: | Spigot | ||
Environment: |
Ubuntu 22.04 |
Version: | This server is running CraftBukkit version 3685-Spigot-41150f3-4839470 (MC: 1.19.4) (Implementing API version 1.19.4-R0.1-SNAPSHOT) |
Guidelines Read: | Yes |
Description |
Whenever doing public static void sendOpenableChange(Player player, Block block, boolean open) { BlockData blockData = block.getBlockData().clone(); if (!(blockData instanceof Openable openable)) { return; } player.sendMessage("is openable"); openable.setOpen(open); player.sendBlockChange(block.getLocation(), openable); } a Barrel is passed and open as true, "is openable" is sent to the player but there are no changes to the barrel. |
Comments |
Comment by md_5 [ 19/Mar/23 ] |
This method is a straight packet call so any issues with it are going to be client issues |