Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-08 04:20:06 +01:00
Fix incorrect casting of CharSequence to String
Dieser Commit ist enthalten in:
Ursprung
b42553116c
Commit
c77ee07fcd
@ -22,13 +22,8 @@ package com.sk89q.worldedit.util;
|
|||||||
import com.sk89q.worldedit.math.BlockVector3;
|
import com.sk89q.worldedit.math.BlockVector3;
|
||||||
import com.sk89q.worldedit.math.Vector3;
|
import com.sk89q.worldedit.math.Vector3;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Optional;
|
|
||||||
import java.util.OptionalInt;
|
|
||||||
|
|
||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
|
import java.util.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A collection of cardinal, ordinal, and secondary-ordinal directions.
|
* A collection of cardinal, ordinal, and secondary-ordinal directions.
|
||||||
@ -87,7 +82,7 @@ public enum Direction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static Direction get(CharSequence sequence) {
|
public static Direction get(CharSequence sequence) {
|
||||||
return map.get((String)sequence);
|
return map.get(sequence.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
public Direction getLeft() {
|
public Direction getLeft() {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren