From 0ea166a551db8a5a70f94ad81b5704c9357a5848 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 28 Dec 2018 13:03:34 +0000 Subject: [PATCH] Prevent placement of unknown blocks, closes #2260 I don't know why I ever allowed this in the first place... stupid idea... --- src/pocketmine/block/UnknownBlock.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pocketmine/block/UnknownBlock.php b/src/pocketmine/block/UnknownBlock.php index e12420710..a4653bac1 100644 --- a/src/pocketmine/block/UnknownBlock.php +++ b/src/pocketmine/block/UnknownBlock.php @@ -31,6 +31,10 @@ class UnknownBlock extends Transparent{ return 0; } + public function canBePlaced() : bool{ + return false; + } + public function getDrops(Item $item) : array{ return []; }