Skip to content

Commit

Permalink
Fix: hopper counter bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hhhxiao committed Nov 11, 2023
1 parent 0a93605 commit 0b4b897
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/functions/HopperCounter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ namespace trapdoor {
// 最近一分钟的瞬时速度
.text(" items (")
.num(static_cast<float>(gtTotal) * 1.0f / static_cast<float>(1200) * 72000)
.text("/h)\n");
.text("/h) in last 1 mins\n");

for (const auto &i : counterList) {
builder.sText(TB::GRAY, " - ");
Expand Down Expand Up @@ -234,5 +234,5 @@ THook(void, "?setItem@HopperBlockActor@@UEAAXHAEBVItemStack@@@Z", HopperBlockAct
// trapdoor::logger().debug("set null {}", reinterpret_cast<uint64_t>(itemStack));
itemStack->remove(itemStack->getCount());
// trapdoor::logger().debug("remove finish");
// HOPPER_RET;
HOPPER_RET;
}
2 changes: 1 addition & 1 deletion src/include/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
#define Trapdoor_VERSION_PATCH 1
#define TRAPDOOR_VERSION 0.41.1
#define GAME_VERSION 1.20.30.02
#define BUILD_TIME 2023-10-19 12:57:11
#define BUILD_TIME 2023-11-11 23:14:41

0 comments on commit 0b4b897

Please sign in to comment.