mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Prevent placement of unknown blocks, closes #2260
I don't know why I ever allowed this in the first place... stupid idea...
This commit is contained in:
parent
6417cff618
commit
0ea166a551
@ -31,6 +31,10 @@ class UnknownBlock extends Transparent{
|
||||
return 0;
|
||||
}
|
||||
|
||||
public function canBePlaced() : bool{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDrops(Item $item) : array{
|
||||
return [];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user