my //cut randomly stopped working
KingTurtle1000 opened this issue ยท 4 comments
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
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
- I have included a Fawe debugpaste.
- I am using the newest build from https://ci.athion.net/job/FastAsyncWorldEdit/ and the issue still persists.
Anything else?
PLS HELP I NEED IT FOR MY SERVER
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
@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