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

RegionMaskingFilter not a method #3006

Open
2 tasks done
Collinvh opened this issue Nov 22, 2024 · 0 comments · May be fixed by #3030
Open
2 tasks done

RegionMaskingFilter not a method #3006

Collinvh opened this issue Nov 22, 2024 · 0 comments · May be fixed by #3030
Labels
Approved Added if an issue has been approved by a maintainer Bug Something isn't working Good first issue Simple issue which would be a good first PR for newbies interested in contributing to the project

Comments

@Collinvh
Copy link

Server Implementation

Paper

Server Version

1.20.4

Describe the bug

I tried using the RegionMaskingFilter on an region but it gave not a method.

Stacktrace:

org.bukkit.command.CommandException: Unhandled exception executing command 'startlevel' in plugin TheBackrooms v1.0
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[paper-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:155) ~[paper-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.craftbukkit.v1_20_R3.CraftServer.dispatchCommand(CraftServer.java:999) ~[paper-1.20.4.jar:git-Paper-499]
        at org.bukkit.craftbukkit.v1_20_R3.command.BukkitCommandWrapper.run(BukkitCommandWrapper.java:64) ~[paper-1.20.4.jar:git-Paper-499]
        at com.mojang.brigadier.context.ContextChain.runExecutable(ContextChain.java:73) ~[brigadier-1.2.9.jar:?]
        at net.minecraft.commands.execution.tasks.ExecuteCommand.a(ExecuteCommand.java:31) ~[paper-1.20.4.jar:git-Paper-499]
        at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:19) ~[paper-1.20.4.jar:git-Paper-499]
        at net.minecraft.commands.execution.UnboundEntryAction.a(UnboundEntryAction.java:8) ~[paper-1.20.4.jar:git-Paper-499]
        at net.minecraft.commands.execution.CommandQueueEntry.a(CommandQueueEntry.java:5) ~[paper-1.20.4.jar:git-Paper-499]
        at net.minecraft.commands.execution.ExecutionContext.a(ExecutionContext.java:103) ~[paper-1.20.4.jar:git-Paper-499]
        at net.minecraft.commands.CommandDispatcher.a(CommandDispatcher.java:434) ~[paper-1.20.4.jar:git-Paper-499]
        at net.minecraft.commands.CommandDispatcher.performCommand(CommandDispatcher.java:336) ~[paper-1.20.4.jar:git-Paper-499]
        at net.minecraft.commands.CommandDispatcher.a(CommandDispatcher.java:323) ~[paper-1.20.4.jar:git-Paper-499]
        at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:2230) ~[paper-1.20.4.jar:git-Paper-499]
        at net.minecraft.server.network.PlayerConnection.lambda$handleChatCommand$14(PlayerConnection.java:2190) ~[paper-1.20.4.jar:git-Paper-499]
        at net.minecraft.util.thread.IAsyncTaskHandler.b(IAsyncTaskHandler.java:59) ~[paper-1.20.4.jar:git-Paper-499]
        at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
        at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.20.4.jar:git-Paper-499]
        at net.minecraft.util.thread.IAsyncTaskHandler.d(IAsyncTaskHandler.java:149) ~[paper-1.20.4.jar:git-Paper-499]
        at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(IAsyncTaskHandlerReentrant.java:24) ~[paper-1.20.4.jar:git-Paper-499]
        at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1465) ~[paper-1.20.4.jar:git-Paper-499]
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:194) ~[paper-1.20.4.jar:git-Paper-499]
        at net.minecraft.util.thread.IAsyncTaskHandler.x(IAsyncTaskHandler.java:123) ~[paper-1.20.4.jar:git-Paper-499]
        at net.minecraft.server.MinecraftServer.bl(MinecraftServer.java:1442) ~[paper-1.20.4.jar:git-Paper-499]
        at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1365) ~[paper-1.20.4.jar:git-Paper-499]
        at net.minecraft.util.thread.IAsyncTaskHandler.c(IAsyncTaskHandler.java:133) ~[paper-1.20.4.jar:git-Paper-499]
        at net.minecraft.server.MinecraftServer.w_(MinecraftServer.java:1343) ~[paper-1.20.4.jar:git-Paper-499]
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1232) ~[paper-1.20.4.jar:git-Paper-499]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[paper-1.20.4.jar:git-Paper-499]
        at java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: java.lang.NoSuchMethodError: 'void com.sk89q.worldedit.function.RegionMaskingFilter.<init>(com.sk89q.worldedit.function.mask.Mask, com.sk89q.worldedit.function.RegionFunction)'
        at collinvht.backrooms.module.main.module.levelsystem.object.levels.level37.Level37.loadExtra(Level37.java:89) ~[Backrooms-1.0.jar:?]

To Reproduce

  1. Write a piece of code for an custom selection, as seen below
Region region = new CuboidRegion(Utils.getAdaptedWorld(world), BlockVector3.at(-37, -64, 128), BlockVector3.at(228, 319, -139));
                Region region2 = new CuboidRegion(Utils.getAdaptedWorld(world), BlockVector3.at(128, -64, 62), BlockVector3.at(169, 319, 39));
for (UUID uuid : session.getParty().getPartyList()) {
    Player player1 = Bukkit.getPlayer(uuid);
    if (player1 != null && player1.isOnline()) player = player1;
}
if (player == null) return;
EditSession editSession = Utils.getWorldEdit().createEditSession(player);
  1. Then add the following line
replace = new RegionMaskingFilter(mask, replace);
  1. Let the code run (Thru a command or any event)
  2. See the stacktrace from the previous step

Expected behaviour

I'd expect it to mask out the other region

Screenshots / Videos

No response

Error log (if applicable)

https://gist.github.com/Collinvh/69f7790f45e2da48a8a1b476b99d1fc5

Fawe Debugpaste

https://athion.net/ISPaster/paste/view/009e38caaadf47d4b4c4cfa41f180816

Fawe Version

2.12.2-SNAPSHOT-973;308e909

Checklist

Anything else?

No response

@Collinvh Collinvh added the Requires Testing This is a new issue which needs to be approved before labeled with "bug" label Nov 22, 2024
@PierreSchwang PierreSchwang added Bug Something isn't working Approved Added if an issue has been approved by a maintainer Good first issue Simple issue which would be a good first PR for newbies interested in contributing to the project and removed Requires Testing This is a new issue which needs to be approved before labeled with "bug" labels Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved Added if an issue has been approved by a maintainer Bug Something isn't working Good first issue Simple issue which would be a good first PR for newbies interested in contributing to the project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants