mirror of
https://github.com/YouHaveTrouble/BlockEdit.git
synced 2026-06-29 13:36:19 +00:00
fix errors when trying to tab complete block data for blocks that don't have any
This commit is contained in:
@@ -43,6 +43,7 @@ public class SetCommand extends Command {
|
||||
if (split.length == 1) {
|
||||
String datas = blockData.getAsString(false);
|
||||
String[] nameAndDatas = datas.split("\\[");
|
||||
if (nameAndDatas.length != 2) return suggestions;
|
||||
datas = nameAndDatas[1].substring(0, nameAndDatas[1].length()-2);
|
||||
String[] splitDatas = datas.split(",");
|
||||
for (String data : splitDatas) {
|
||||
|
||||
Reference in New Issue
Block a user