Jump to content

EntityMountEvent firing twice


TheLazySquid

Recommended Posts

Basically, i'm writing a mod that has to do something when you mount a horse. However, whenever the horse is mounted (or dismounted) it fires twice.

Here's my code: 

@SubscribeEvent
    public void mountEntity(EntityMountEvent event){
        Minecraft.getMinecraft().player.sendMessage(new TextComponentString("horse"));
    }

I'm using 1.12.2 if that makes any difference

Link to comment
Share on other sites

  • Guest locked this topic
Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.