mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-04-30 06:14:25 +02:00
fix: XMLValuesEncoder not being able to create new entries
This commit is contained in:
parent
25df85261b
commit
43b8f6c5bd
@ -46,10 +46,7 @@ class XMLValuesEncoder {
|
||||
}
|
||||
private void encode(TypeBlock typeBlock, XMLElement element){
|
||||
String name = element.getAttributeValue("name");
|
||||
int resourceId = getMaterials()
|
||||
.resolveLocalResourceId(typeBlock.getTypeName(), name);
|
||||
Entry entry = typeBlock
|
||||
.getOrCreateEntry((short) (0xffff & resourceId));
|
||||
Entry entry = typeBlock.getOrCreateEntry(name);
|
||||
|
||||
encodeValue(entry, element);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user