Fake states are now "[meta=%d]" instead of "[%d]"
This commit is contained in:
parent
d4f1656e1c
commit
5319da5484
@ -588,7 +588,7 @@ class EditorSession(QtCore.QObject):
|
|||||||
else:
|
else:
|
||||||
# not automatically created by FML mapping loader
|
# not automatically created by FML mapping loader
|
||||||
ID = blocktypes.IDsByName[internalName]
|
ID = blocktypes.IDsByName[internalName]
|
||||||
fakeState = '[%d]' % blockDef.meta
|
fakeState = '[meta=%d]' % blockDef.meta
|
||||||
nameAndState = internalName + fakeState
|
nameAndState = internalName + fakeState
|
||||||
blocktypes.blockJsons[nameAndState] = {
|
blocktypes.blockJsons[nameAndState] = {
|
||||||
'displayName': internalName,
|
'displayName': internalName,
|
||||||
|
@ -576,7 +576,7 @@ class AnvilWorldAdapter(object):
|
|||||||
# FML IDs should be allowed to override some of them for 1.8 blocks not in 1.7.
|
# FML IDs should be allowed to override some of them for 1.8 blocks not in 1.7.
|
||||||
count += 1
|
count += 1
|
||||||
replacedIDs.append(ID)
|
replacedIDs.append(ID)
|
||||||
fakeState = '[0]'
|
fakeState = '[meta=0]'
|
||||||
nameAndState = name + fakeState
|
nameAndState = name + fakeState
|
||||||
log.debug("FML1.7: Adding %s = %d", name, ID)
|
log.debug("FML1.7: Adding %s = %d", name, ID)
|
||||||
|
|
||||||
@ -596,7 +596,7 @@ class AnvilWorldAdapter(object):
|
|||||||
blocktypes.blockJsons[nameAndState] = {
|
blocktypes.blockJsons[nameAndState] = {
|
||||||
'displayName': name,
|
'displayName': name,
|
||||||
'internalName': name,
|
'internalName': name,
|
||||||
'blockState': '[0]',
|
'blockState': '[meta=0]',
|
||||||
'unknown': True,
|
'unknown': True,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user