mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +01:00
Fixes #1419
This commit is contained in:
parent
93414d54c1
commit
e7fa9e01be
@ -173,12 +173,14 @@ public class BukkitHybridUtils extends HybridUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Material material = Material.getMaterial(now);
|
Material material = Material.getMaterial(now);
|
||||||
|
if (material != null) {
|
||||||
Class<? extends MaterialData> md = material.getData();
|
Class<? extends MaterialData> md = material.getData();
|
||||||
if (md.equals(Directional.class)) {
|
if (md.equals(Directional.class)) {
|
||||||
data[i] += 8;
|
data[i] += 8;
|
||||||
} else if (!md.equals(MaterialData.class)) {
|
} else if (!md.equals(MaterialData.class)) {
|
||||||
data[i]++;
|
data[i]++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
types.add(now);
|
types.add(now);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user