Change the block type check to be implementation-dependent. The Bukkit plugin now checks Bukkit's Material.

This commit is contained in:
sk89q
2011-06-04 22:22:23 -07:00
parent 0f040429c5
commit e20cca38fd
6 changed files with 53 additions and 5 deletions

View File

@ -164,7 +164,7 @@ public class EditSession {
}
// No invalid blocks
if ((type > 32 && type < 35) || type == 36 || type == 29 || type > 96) {
if (!world.isValidBlockType(type)) {
return false;
}