Hello,
I found that the PlayerInteractEvent had a pretty strange behaviour.
Let me be a bit more precise.
Here's the minimalistic piece of code I used :
@SubscribeEvent
public void onPlayerBreakBlock(PlayerInteractEvent event) {
System.out.println("PlayerInteractEvent => " + event);
}
Here's the behaviour of this event :
- In singleplayer, left clicking a block triggers this event with event.action = LEFT_CLICK_BLOCK
- In singleplayer, right clicking (or placing) a block triggers this event with event.action = RIGHT_CLICK_BLOCK
- In multiplayer, left clicking a block DOES NOT triggers this event at all.
- In multiplayer, right clicking (or placing) a block triggers this event with event.action = RIGHT_CLICK_BLOCK
Why does this event isn't triggered in multiplayer when left-clicking a block ?
This disfunctionment is happening with the two 1.7.10 Forge builds available at this day :
The recommended one (10.13.0.1180) and the latest one (10.13.0.1205).
PS : I'm sorry for my English, I'm French.