mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 17:57:38 +00:00
Worked around brokenness in PlayerInteractEvent
This commit is contained in:
parent
59ade7a386
commit
3c92bd9451
@ -87,7 +87,7 @@ public class WorldEditPlayerListener extends PlayerListener {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void onPlayerInteract(PlayerInteractEvent event) {
|
public void onPlayerInteract(PlayerInteractEvent event) {
|
||||||
if (event.isCancelled())
|
if (event.isCancelled() && event.hasBlock())
|
||||||
return;
|
return;
|
||||||
if (event.getAction() == Action.LEFT_CLICK_BLOCK) {
|
if (event.getAction() == Action.LEFT_CLICK_BLOCK) {
|
||||||
LocalWorld world = new BukkitWorld(event.getClickedBlock().getWorld());
|
LocalWorld world = new BukkitWorld(event.getClickedBlock().getWorld());
|
||||||
|
Loading…
Reference in New Issue
Block a user