mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-27 05:00:08 +08:00
Prevent setting blocks to items due to Bukkit's Material containing both.
This commit is contained in:
parent
3f0da63b01
commit
4d6bb6d746
@ -670,7 +670,7 @@ private boolean setContainerBlockContents(Vector pt, BaseItemStack[] contents) {
|
||||
*/
|
||||
@Override
|
||||
public boolean isValidBlockType(int type) {
|
||||
return Material.getMaterial(type) != null;
|
||||
return type <= 255 && Material.getMaterial(type) != null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user