Updated for 1.8 blocks and items

This commit is contained in:
zml2008
2011-09-13 22:45:47 -07:00
parent 2f390e9938
commit 6f43c6a312
5 changed files with 86 additions and 13 deletions

View File

@ -670,7 +670,7 @@ public class BukkitWorld extends LocalWorld {
*/
@Override
public boolean isValidBlockType(int type) {
return type <= 255 && Material.getMaterial(type) != null;
return type <= 255 && (Material.getMaterial(type) != null || BlockType.fromID(type) != null); // Bukkit isn't always updated before WorldEdit is
}
@Override