FastAsyncWorldEdit

FastAsyncWorldEdit

152k Downloads

my //cut randomly stopped working

KingTurtle1000 opened this issue ยท 4 comments

commented

Server Implementation

Paper

Server Version

1.17.1

Describe the bug

whenever i do //cut or //set on any amount of blocks it says
Please report this error: [see console]
java.lang.NoSuchMethodError:
com.google.common.collect.ImmutableMap
com.google.cmmon.collect.immutableMap$Buider.buildOrThrow()'

To Reproduce

//cut
//set

Expected behaviour

cut the blocks of the selected area
set the blocks to a block in the selected area

Screenshots / Videos

Screen Shot 2024-02-22 at 8 35 43 AM Screen Shot 2024-02-22 at 8 35 49 AM

Error log (if applicable)

No response

Fawe Debugpaste

https://athion.net/ISPaster/paste/view/62760e2ea1f442989df20ebc10509f77

Fawe Version

FastAsyncWorldEdit version 2.9.1-SNAPSHOT-660;f94b96d

Checklist

Anything else?

PLS HELP I NEED IT FOR MY SERVER

commented

Ive tested other commands none of the FAWE commands work anymore

commented

Saw this issue, for any devs looking through, this problem is with piston.
Piston uses guava version 21.0 (because that's what works with minecraft according to comments in code) but attempts to use ImmutableMap.Builder.buildOrThrow which was implemented in version 31.0, so it attempts to call a method that doesn't exist in that version. Never worked in mods before but code hunting brought me to this, hope it helps!

Also, here's the error logs he forgot to include https://pastebin.com/ifEiYufJ

Tldr; Command handler (piston) broken, update guava or don't use buildOrThrow (in piston)

Update: AutoValue_CommandParamatersImpl line 162 "this.values = this.valuesBuilder$.buildOrThrow();" I do not understand how autovalue works in the slightest but this is what's there

Update 2: Downgrading AutoValue back to 1.7.4 in piston may fix this, since buildOrThrow is the default in the new version of AutoValue that is used in piston

commented

@Cryodev1 would you be willing to make a fork of FAWE that has this patched so I can use a working version on my server

commented

1.17.1 is no longer supported, I recommend updating your server to a maintained version, such as 1.20.4.