Don't add "minecraft:" to block names unless they obviously don't have a prefix
This commit is contained in:
parent
47c3be176d
commit
ac3bf2afba
@ -211,7 +211,7 @@ class BlockTypeSet(object):
|
||||
ID, meta = nameAndState
|
||||
|
||||
elif isinstance(nameAndState, basestring):
|
||||
if not nameAndState.startswith(self.namePrefix):
|
||||
if ":" not in nameAndState:
|
||||
nameAndState = self.namePrefix + nameAndState
|
||||
if nameAndState not in self.IDsByState:
|
||||
if nameAndState in self.defaultBlockstates:
|
||||
|
Reference in New Issue
Block a user