Skip to content

Commit

Permalink
Fix PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
dries-c committed Dec 24, 2024
1 parent ca0ae95 commit 48ebe52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/block/VanillaBlocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -1583,8 +1583,8 @@ public function isFireProofAsItem() : bool{ return true; }
self::register("gilded_blackstone", fn(BID $id) => new GildedBlackstone($id, "Gilded Blackstone", $blackstoneBreakInfo));

$mossBreakInfo = new Info(BreakInfo::hoe(0.1));
self::register("moss_block", new Opaque(new BID(Ids::MOSS_BLOCK), "Moss Block", $mossBreakInfo));
self::register("moss_carpet", new MossCarpet(new BID(Ids::MOSS_CARPET), "Moss Carpet", $mossBreakInfo));
self::register("moss_block", fn(BID $id) => new Opaque($id, "Moss Block", $mossBreakInfo));
self::register("moss_carpet", fn(BID $id) => new MossCarpet($id, "Moss Carpet", $mossBreakInfo));

//TODO: polished blackstone ought to have 2.0 hardness (as per java) but it's 1.5 in Bedrock (probably parity bug)
$prefix = fn(string $thing) => "Polished Blackstone" . ($thing !== "" ? " $thing" : "");
Expand Down
3 changes: 3 additions & 0 deletions tests/phpunit/block/block_factory_consistency_check.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@
"DOUBLE_TALLGRASS": 2,
"DRAGON_EGG": 1,
"DRIED_KELP": 1,
"DRIPSTONE_BLOCK": 1,
"DYED_CANDLE": 128,
"DYED_SHULKER_BOX": 16,
"ELEMENT_ACTINIUM": 1,
Expand Down Expand Up @@ -469,6 +470,8 @@
"MOSSY_STONE_BRICK_SLAB": 3,
"MOSSY_STONE_BRICK_STAIRS": 8,
"MOSSY_STONE_BRICK_WALL": 162,
"MOSS_BLOCK": 1,
"MOSS_CARPET": 1,
"MUD": 1,
"MUDDY_MANGROVE_ROOTS": 3,
"MUD_BRICKS": 1,
Expand Down

0 comments on commit 48ebe52

Please sign in to comment.