mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-22 19:06:35 +00:00
Remove redundant condition from ItemFactory
it's unrealistic to have a numeric constant name, so this condition is pointless.
This commit is contained in:
parent
754e088ee8
commit
8ad02c9a4e
@ -355,9 +355,6 @@ class ItemFactory{
|
||||
|
||||
if(defined(Item::class . "::" . strtoupper($b[0]))){
|
||||
$item = self::get(constant(Item::class . "::" . strtoupper($b[0])), $meta);
|
||||
if($item->getId() === Item::AIR and strtoupper($b[0]) !== "AIR" and is_numeric($b[0])){
|
||||
$item = self::get(((int) $b[0]) & 0xFFFF, $meta);
|
||||
}
|
||||
}elseif(is_numeric($b[0])){
|
||||
$item = self::get(((int) $b[0]) & 0xFFFF, $meta);
|
||||
}else{
|
||||
|
Loading…
x
Reference in New Issue
Block a user