mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Fix block parse NPE
This commit is contained in:
parent
15d0d16da6
commit
8de1fff263
@ -225,8 +225,7 @@ public class DefaultBlockParser extends InputParser<BlockStateHolder> {
|
|||||||
nbt = item.getNbtData();
|
nbt = item.getNbtData();
|
||||||
} else {
|
} else {
|
||||||
BlockTypes type = BlockTypes.parse(typeString.toLowerCase());
|
BlockTypes type = BlockTypes.parse(typeString.toLowerCase());
|
||||||
state = type.getDefaultState();
|
if (type != null) state = type.getDefaultState();
|
||||||
|
|
||||||
if (state == null) {
|
if (state == null) {
|
||||||
throw new NoMatchException("Does not match a valid block type: '" + input + "'");
|
throw new NoMatchException("Does not match a valid block type: '" + input + "'");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user