mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 00:39:45 +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){
|
foreach($tag as $v){
|
||||||
if($v instanceof StringTag){
|
if($v instanceof StringTag){
|
||||||
$entry = ItemFactory::fromString($v->getValue());
|
$entry = ItemFactory::fromString($v->getValue());
|
||||||
if($entry->getId() > 0 and $entry->getBlock()->isSameType($target)){
|
if($entry->getBlock()->isSameType($target)){
|
||||||
$canBreak = true;
|
$canBreak = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -1830,7 +1830,7 @@ class Level implements ChunkManager, Metadatable{
|
|||||||
foreach($tag as $v){
|
foreach($tag as $v){
|
||||||
if($v instanceof StringTag){
|
if($v instanceof StringTag){
|
||||||
$entry = ItemFactory::fromString($v->getValue());
|
$entry = ItemFactory::fromString($v->getValue());
|
||||||
if($entry->getId() > 0 and $entry->getBlock()->isSameType($blockClicked)){
|
if($entry->getBlock()->isSameType($blockClicked)){
|
||||||
$canPlace = true;
|
$canPlace = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user