From ab7e22f51ac0d849d4292002ad5e7faae7fe7c83 Mon Sep 17 00:00:00 2001 From: Fallen_Breath Date: Thu, 9 Dec 2021 02:18:05 +0800 Subject: [PATCH] blockPlacedCount sounds more vanilla --- patches/net/minecraft/item/ItemBlock.java.patch | 4 ++-- patches/net/minecraft/scoreboard/ScoreCriteria.java.patch | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/patches/net/minecraft/item/ItemBlock.java.patch b/patches/net/minecraft/item/ItemBlock.java.patch index 9273cc4f..705e5cb2 100644 --- a/patches/net/minecraft/item/ItemBlock.java.patch +++ b/patches/net/minecraft/item/ItemBlock.java.patch @@ -41,8 +41,8 @@ + // TISCM break_bedrock stat + BedrockBreakingStatHelper.onPlayerPlacedBlock(block, world, blockpos, entityplayer); + -+ // TISCM blockPlaced criteria -+ entityplayer.getWorldScoreboard().forAllObjectives(ScoreCriteria.BLOCK_PLACED, entityplayer.getScoreboardName(), Score::incrementScore); ++ // TISCM blockPlacedCount criteria ++ entityplayer.getWorldScoreboard().forAllObjectives(ScoreCriteria.BLOCK_PLACED_COUNT, entityplayer.getScoreboardName(), Score::incrementScore); } } diff --git a/patches/net/minecraft/scoreboard/ScoreCriteria.java.patch b/patches/net/minecraft/scoreboard/ScoreCriteria.java.patch index 2259b86b..a8f07360 100644 --- a/patches/net/minecraft/scoreboard/ScoreCriteria.java.patch +++ b/patches/net/minecraft/scoreboard/ScoreCriteria.java.patch @@ -5,7 +5,7 @@ private final ScoreCriteria.RenderType renderType; + // TISCM: Added block placed total criteria -+ public static final ScoreCriteria BLOCK_PLACED = new ScoreCriteria("blockPlaced"); ++ public static final ScoreCriteria BLOCK_PLACED_COUNT = new ScoreCriteria("blockPlacedCount"); + public ScoreCriteria(String p_i47676_1_) {