Hello,
I'm currently whriting on a basic mod for Minecraft.
While playing with the events of Minecraft i noticed, that the PlayerInteractEvent.RightClickBlock is fiered four times. Why?
Here is my Code:
package de.bestar.intensiveengineering.addons;
import de.bestar.intensiveengineering.Reference;
import net.minecraftforge.event.entity.player.PlayerInteractEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
@Mod.EventBusSubscriber(modid = Reference.modId)
public class MyEventHandler {
@SubscribeEvent
public static void BlockRightClickEvent(PlayerInteractEvent.RightClickBlock event) {
System.out.println("\n\nBlock\n");
}
}