Prevent setting blocks to items due to Bukkit's Material containing both.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user