[SPIGOT-5266] PlayerInteractEvent getType returns AIR on new blocks Created: 13/Aug/19  Updated: 13/Aug/19  Resolved: 13/Aug/19

Status: Closed
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Virgil Fabre Assignee: Unassigned
Resolution: Invalid Votes: 0
Labels: PlayerInteractEvent
Environment:

Windows 10 Java 1.8


Attachments: PNG File aetea.png    
Version: git-Spigot-798ea6a-368f4e9
Plugin: My own, you can see code in photo
Guidelines Read: Yes

 Description   

PlayerInteractEvent returns AIR at event.getClickedBlock().getType() on lot of blocks including blast furnace, composter, grindstone, fletching table, by logic I think it's all "new" blocks

I directly added preview with broadcastmessage (See picture)
If it's me being stupid tell me but from experience, this doesn't look from my side



 Comments   
Comment by Virgil Fabre [ 13/Aug/19 ]

Perfect thanks
Ill try it in some sec but Im pretty sure its resolved

Comment by Black Hole [ 13/Aug/19 ]

Starting with version 1.13 you have to declare the version the plugin is build for in your plugin.yml file, like:
api-version: 1.14

Generated at Tue Apr 22 04:20:19 UTC 2025 using Jira 10.3.5#10030005-sha1:190c783f2bd6c69cd5accdb70f97e48812a78d14.