File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed
worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -280,14 +280,8 @@ public boolean ascendLevel() {
280280 int yPlusSearchHeight = y + WorldEdit .getInstance ().getConfiguration ().defaultVerticalHeight ;
281281 int maxY = Math .min (world .getMaxY (), yPlusSearchHeight ) + 2 ;
282282
283- //FAWE start - mutable
284- MutableBlockVector3 mutable = new MutableBlockVector3 (x , y , z );
285- //FAWE end
286-
287283 while (y <= maxY ) {
288- //FAWE start - mutable
289- if (isLocationGoodForStanding (mutable .mutY (y ))
290- //FAWE end
284+ if (isLocationGoodForStanding (BlockVector3 .at (x , y , z ))
291285 && trySetPosition (Vector3 .at (x + 0.5 , y , z + 0.5 ))) {
292286 return true ;
293287 }
@@ -308,14 +302,8 @@ public boolean descendLevel() {
308302 int yLessSearchHeight = y - WorldEdit .getInstance ().getConfiguration ().defaultVerticalHeight ;
309303 int minY = Math .min (world .getMinY () + 1 , yLessSearchHeight );
310304
311- //FAWE start - mutable
312- MutableBlockVector3 mutable = new MutableBlockVector3 (x , y , z );
313- //FAWE end
314-
315305 while (y >= minY ) {
316- //FAWE start - mutable
317- if (isLocationGoodForStanding (mutable .mutY (y ))
318- //FAWE end
306+ if (isLocationGoodForStanding (BlockVector3 .at (x , y , z ))
319307 && trySetPosition (Vector3 .at (x + 0.5 , y , z + 0.5 ))) {
320308 return true ;
321309 }
You can’t perform that action at this time.
0 commit comments