mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 09:19:42 +00:00
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:
parent
d2aca6023b
commit
fd675449e9
@ -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"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user