mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2025-01-12 12:25:03 +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
|
@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
|
||||||
|
Loading…
Reference in New Issue
Block a user