mirror of
https://github.com/exituser/Brewery.git
synced 2026-09-17 05:28:59 +00:00
Fix LegacyUtil bugs
This commit is contained in:
@@ -51,7 +51,7 @@ public class LegacyUtil {
|
||||
}
|
||||
}
|
||||
|
||||
private static Material get(String oldName, String newName) {
|
||||
private static Material get(String newName, String oldName) {
|
||||
try {
|
||||
return Material.valueOf(P.use1_13 ? newName : oldName);
|
||||
} catch (IllegalArgumentException e) {
|
||||
@@ -82,7 +82,7 @@ public class LegacyUtil {
|
||||
}
|
||||
|
||||
public static boolean areStairsInverted(Block block) {
|
||||
if (P.use1_13) {
|
||||
if (!P.use1_13) {
|
||||
MaterialData data = block.getState().getData();
|
||||
return data instanceof org.bukkit.material.Stairs && (((org.bukkit.material.Stairs) data).isInverted());
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user