mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-07 10:31:51 +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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function canBePlaced() : bool{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
public function getDrops(Item $item) : array{
|
public function getDrops(Item $item) : array{
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user