Fix falling block disguise

This commit is contained in:
libraryaddict 2020-08-27 15:57:11 +12:00
parent 5435df78de
commit 86a757626b
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@
<!-- A good example on why temporary names for project identification shouldn't be used --> <!-- A good example on why temporary names for project identification shouldn't be used -->
<groupId>LibsDisguises</groupId> <groupId>LibsDisguises</groupId>
<artifactId>LibsDisguises</artifactId> <artifactId>LibsDisguises</artifactId>
<version>10.0.16</version> <version>10.0.16-SNAPSHOT</version>
<build> <build>
<defaultGoal>exec:java clean install</defaultGoal> <defaultGoal>exec:java clean install</defaultGoal>

View file

@ -799,7 +799,7 @@ public class DisguiseParser {
try { try {
if (disguisePerm.getType() == DisguiseType.FALLING_BLOCK) { if (disguisePerm.getType() == DisguiseType.FALLING_BLOCK) {
if (NmsVersion.v1_13.isSupported()) { if (NmsVersion.v1_13.isSupported() && args[1].contains("[")) {
info = ParamInfoManager.getParamInfo(BlockData.class); info = ParamInfoManager.getParamInfo(BlockData.class);
blockData = info.fromString( blockData = info.fromString(
new ArrayList<>(Collections.singletonList(args[1]))); new ArrayList<>(Collections.singletonList(args[1])));