mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 08:35:20 +00:00
Block: rename isSameType() to hasSameTypeId()
this should remove any ambiguity about its behaviour.
This commit is contained in:
@ -1922,7 +1922,7 @@ class World implements ChunkManager{
|
||||
$itemParser = LegacyStringToItemParser::getInstance();
|
||||
foreach($item->getCanDestroy() as $v){
|
||||
$entry = $itemParser->parse($v);
|
||||
if($entry->getBlock()->isSameType($target)){
|
||||
if($entry->getBlock()->hasSameTypeId($target)){
|
||||
$canBreak = true;
|
||||
break;
|
||||
}
|
||||
@ -2077,7 +2077,7 @@ class World implements ChunkManager{
|
||||
$itemParser = LegacyStringToItemParser::getInstance();
|
||||
foreach($item->getCanPlaceOn() as $v){
|
||||
$entry = $itemParser->parse($v);
|
||||
if($entry->getBlock()->isSameType($blockClicked)){
|
||||
if($entry->getBlock()->hasSameTypeId($blockClicked)){
|
||||
$canPlace = true;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user