typo
This commit is contained in:
parent
cf05e75e9a
commit
b56dde8f7e
@ -133,7 +133,7 @@ public class ExampleBaritoneControl extends Behavior {
|
|||||||
}
|
}
|
||||||
if (msg.toLowerCase().startsWith("mine")) {
|
if (msg.toLowerCase().startsWith("mine")) {
|
||||||
String blockType = msg.toLowerCase().substring(4).trim();
|
String blockType = msg.toLowerCase().substring(4).trim();
|
||||||
List<BlockPos> locs = new ArrayList<>(WorldProvider.INSTANCE.getCurrentWorld().cache.getLocationsOf(1, 1));
|
List<BlockPos> locs = new ArrayList<>(WorldProvider.INSTANCE.getCurrentWorld().cache.getLocationsOf(blockType, 1, 1));
|
||||||
if (locs.isEmpty()) {
|
if (locs.isEmpty()) {
|
||||||
displayChatMessageRaw("No locations known");
|
displayChatMessageRaw("No locations known");
|
||||||
event.cancel();
|
event.cancel();
|
||||||
|
Loading…
Reference in New Issue
Block a user