-
-
Notifications
You must be signed in to change notification settings - Fork 837
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace //set with new command version.
- Loading branch information
Showing
2 changed files
with
2 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0e200df
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I seem to be getting an error when using the //set command.
Error: java.lang.NoClassDefFoundError:
com/google/common/base/MoreObjects
0e200df
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this commit currently only works if you're using Forge. Will be fixed at some point.
0e200df
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In build 3409, //set throws a com.sk89q.worldedit.MaxChangedBlocksException when it runs into the block limit of the executing player. I suspect this commit might have caused that.
Stacktrace: http://paste.thezomg.com/19035/14520873/
0e200df
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is how block limits are implemented.
The problem is not that it is thrown, but that it is not caught properly.
0e200df
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realize this commit and thread is old, but is the series of 'MaxChangedBlocksException' errors that appear in the console going to be fixed? It's still present in build 3575. When using '//set' to change more blocks than allowed, WE used to give an appropriate message about having reached the block change limit. Now it just throws that error. I can change or eliminate the block change limit, but it would be nicer if this error was handled properly.
0e200df
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@WonderDave I have replied to this about 5 months ago, created an issue on their issue tracker and tried to contact devs on their IRC channel. So far, I've been ignored. If you want to fix this yourself, you can download the source, apply this fix and build WorldEdit yourself:
http://paste.thezomg.com/19689/16747146/
It's not a proper fix in terms of good coding, but it's simple and working.
0e200df
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll take care of this -- hopefully tonight -- I assigned myself. Sorry you feel you've been ignored Pieter.
http://dev.enginehub.org/youtrack/issue/WORLDEDIT-3386
0e200df
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DarkArc Thanks for taking care of the bug. Knowing these reports eventually change something, I'll likely create more of them in the future.
If you would like to fix another bug, "//paste -s" is not properly setting the players selection (http://dev.enginehub.org/youtrack/issue/WORLDEDIT-3457). I've written a method that does return the right selection of where the users clipboard would be pasted for either a relative and original (-o flag) paste. The working code is in a CH extension, you can use it as a reference to see which calls can be used to make it work: https://github.com/jb-aero/SKCompat/blob/master/SKCompat-bundle/src/main/java/io/github/jbaero/skcompat/CHWorldEdit.java#L718-L754
Have a nice day :)
0e200df
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both are fixed, sorry about the wait, all of the WorldEdit devs -- myself included -- have only gotten older, and, in turn, busier over the years.
Hope you have/have had a good day as well.
0e200df
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DarkArc I'm impressed. A quick response to our above requests, and great follow-through in getting the issues resolved. Thank you.