mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-11 00:09:39 +00:00
Remove pointless ID maths from Level
This commit is contained in:
parent
139aaa5577
commit
7c1432526f
@ -1668,7 +1668,7 @@ class Level implements ChunkManager, Metadatable{
|
||||
foreach($tag as $v){
|
||||
if($v instanceof StringTag){
|
||||
$entry = ItemFactory::fromString($v->getValue());
|
||||
if($entry->getId() > 0 and $entry->getBlock()->isSameType($target)){
|
||||
if($entry->getBlock()->isSameType($target)){
|
||||
$canBreak = true;
|
||||
break;
|
||||
}
|
||||
@ -1830,7 +1830,7 @@ class Level implements ChunkManager, Metadatable{
|
||||
foreach($tag as $v){
|
||||
if($v instanceof StringTag){
|
||||
$entry = ItemFactory::fromString($v->getValue());
|
||||
if($entry->getId() > 0 and $entry->getBlock()->isSameType($blockClicked)){
|
||||
if($entry->getBlock()->isSameType($blockClicked)){
|
||||
$canPlace = true;
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user