Removed "generic" as tree type for normal wood

This commit is contained in:
Robin Kupper
2011-08-13 13:38:07 +02:00
parent 132d5b2dc0
commit 60db6779f4

View File

@@ -129,7 +129,7 @@ public class BukkitUtils
public static String materialName(int type, byte rawData) {
final Material mat = Material.getMaterial(type);
if (mat != null) {
if (type == 6 || type == 17 || type == 18 || type == 35 || type == 43 || type == 44) {
if ((type == 6 || type == 17 || type == 18) && rawData > 0 || type == 35 || type == 43 || type == 44) {
final MaterialData data = mat.getNewData(rawData);
if (data != null)
return data.toString().toLowerCase().replace('_', ' ').replaceAll("[^a-z ]", "");