Remove redundant condition from ItemFactory

it's unrealistic to have a numeric constant name, so this condition is pointless.
This commit is contained in:
Dylan K. Taylor 2017-11-03 12:41:24 +00:00
parent 754e088ee8
commit 8ad02c9a4e

View File

@ -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{