Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cancelling event breaks entity #1599

Open
3 of 4 tasks
miniking1000 opened this issue Oct 16, 2024 · 2 comments
Open
3 of 4 tasks

cancelling event breaks entity #1599

miniking1000 opened this issue Oct 16, 2024 · 2 comments

Comments

@miniking1000
Copy link

miniking1000 commented Oct 16, 2024

Spark link

https://spark.lucko.me/ob4jBvLRdv

Expected behavior

nothing to happen, I want my "minecraft:interaction" to stay as it is
standard

Observed/Actual behavior

the entity(interaction entity) rotated
wrong

Steps/models to reproduce

  1. setup server with any plugin that cancels "PlayerInteractAtEntityEvent", for example this:
package com.example.bug;

import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerInteractAtEntityEvent;
import org.bukkit.plugin.java.JavaPlugin;

public final class Bug extends JavaPlugin implements Listener {
    @Override
    public void onEnable() {
        getServer().getPluginManager().registerEvents(this, this);
    }

    @EventHandler
    public void onEvent(PlayerInteractAtEntityEvent event){
        event.setCancelled(true);
    }
}
  1. interact with any minecraft:interaction
  2. done

Purpur version

version
[13:22:57 INFO]: Checking version, please wait...
[13:22:57 INFO]: Current Purpur Version: 1.21.1-2324-e12a4de (MC: 1.21.1)*

  • You are running the latest version
    Previous: 1.21.1-2308-8332fa4 (MC: 1.21.1)

Agreements

  • I am running the latest version of Purpur available from https://purpurmc.org/downloads.
  • I have searched for and ensured there isn't already an open issue regarding this.
  • I ticked all the boxes without actually reading them
  • My version of Minecraft is supported by Purpur.

Other

Its probably not a purpur specific bug

@granny
Copy link
Member

granny commented Oct 16, 2024

@miniking1000 are you able to reproduce this on paper? We don't really modify anything in terms of the PlayerInteractAtEntityEvent event. Try Spigot as well in case it's not a Paper issue.

@miniking1000
Copy link
Author

miniking1000 commented Oct 16, 2024

Its a paper bug, I already create issue there and it's accepted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants