Prevent setting blocks to items due to Bukkit's Material containing both.

This commit is contained in:
Wizjany 2011-08-16 19:30:06 -04:00
parent 3f0da63b01
commit 4d6bb6d746

View File

@ -670,7 +670,7 @@ public class BukkitWorld extends LocalWorld {
*/
@Override
public boolean isValidBlockType(int type) {
return Material.getMaterial(type) != null;
return type <= 255 && Material.getMaterial(type) != null;
}
@Override