From fd675449e91da0b0a94962cc3c8880cc2927e35a Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 7 Feb 2020 22:06:34 +0000 Subject: [PATCH] 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. --- src/block/BlockFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/block/BlockFactory.php b/src/block/BlockFactory.php index 61bffbe0b..715401fff 100644 --- a/src/block/BlockFactory.php +++ b/src/block/BlockFactory.php @@ -93,7 +93,7 @@ class BlockFactory{ self::$lightFilter = \SplFixedArray::fromArray(array_fill(0, 8192, 1)); 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 Air(new BID(Ids::AIR), "Air"));