mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
Added CanDestroy and Lock tag
This commit is contained in:
@ -85,6 +85,7 @@ class EnchantingTable extends Transparent{
|
||||
|
||||
public function onActivate(Item $item, Player $player = null){
|
||||
if($player instanceof Player){
|
||||
//TODO lock
|
||||
if($player->isCreative()){
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user