BlockFactory: fill blastResistance with float(0)

technically there wasn't anything wrong with this code, but it caused the type inference to report incompatibility, and I can't be bothered to report a PHPStan bug.
This commit is contained in:
Dylan K. Taylor 2020-02-07 22:06:34 +00:00
parent d2aca6023b
commit fd675449e9

View File

@ -93,7 +93,7 @@ class BlockFactory{
self::$lightFilter = \SplFixedArray::fromArray(array_fill(0, 8192, 1)); self::$lightFilter = \SplFixedArray::fromArray(array_fill(0, 8192, 1));
self::$diffusesSkyLight = \SplFixedArray::fromArray(array_fill(0, 8192, false)); self::$diffusesSkyLight = \SplFixedArray::fromArray(array_fill(0, 8192, false));
self::$blastResistance = \SplFixedArray::fromArray(array_fill(0, 8192, 0)); self::$blastResistance = \SplFixedArray::fromArray(array_fill(0, 8192, 0.0));
self::register(new ActivatorRail(new BID(Ids::ACTIVATOR_RAIL), "Activator Rail")); self::register(new ActivatorRail(new BID(Ids::ACTIVATOR_RAIL), "Activator Rail"));
self::register(new Air(new BID(Ids::AIR), "Air")); self::register(new Air(new BID(Ids::AIR), "Air"));