Skip to content

Commit f7fd37d

Browse files
committed
Fix: cactus rotate and shortcut conflict bug
1 parent e7cd805 commit f7fd37d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Diff for: src/base/TrapdoorMod.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ namespace trapdoor {
139139

140140
std::string TrapdoorMod::getVersionString() const {
141141
trapdoor::TextBuilder tb;
142-
tb.sTextF(TB::BOLD | TB::AQUA, "Tapdoor v%s\n", STRING(TRAPDOOR_VERSION));
142+
tb.sTextF(TB::BOLD | TB::AQUA, "Trapdoor v%s\n", STRING(TRAPDOOR_VERSION));
143143
tb.sTextF(TB::BOLD | TB::WHITE, "Developed by %s %s\n", "hhhxiao", "OEOTYAN");
144144
tb.textF("Build time: %s\n", STRING(BUILD_TIME));
145145
return tb.get();
@@ -148,7 +148,7 @@ namespace trapdoor {
148148
std::string TrapdoorMod::rootPath() const { return this->modRootPath + "/"; }
149149
const DynamicCommandInstance *TrapdoorMod::getCmdInstance(const string &name) {
150150
auto it = this->cmdInstanceMap.find(name);
151-
if (it != this->cmdInstanceMap.end() || (!it->second)) {
151+
if (it == this->cmdInstanceMap.end() || (!it->second)) {
152152
trapdoor::logger().debug("Can not find instance for command {}", name);
153153
return nullptr;
154154
}

Diff for: src/root/config.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
},
108108
"shortcuts": {
109109
"hopper_counter_printer": {
110+
"enable": true,
110111
"type": "use-on",
111112
"item": "cactus",
112113
"block": "concrete",
@@ -116,7 +117,7 @@
116117
]
117118
},
118119
"redstone_debug_stick": {
119-
"enable": false,
120+
"enable": true,
120121
"type": "use-on",
121122
"item": "stick",
122123
"block": "",

0 commit comments

Comments
 (0)