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

Dieser Commit ist enthalten in:
Wizjany 2011-08-16 19:30:06 -04:00
Ursprung 3f0da63b01
Commit 4d6bb6d746

Datei anzeigen

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