diff options
author | SHsuperCM <shsupercm@gmail.com> | 2022-02-18 08:52:52 +0200 |
---|---|---|
committer | SHsuperCM <shsupercm@gmail.com> | 2022-02-18 08:52:52 +0200 |
commit | 429b299266e9633e325e4d57e2a582fde1666e7a (patch) | |
tree | 5bcb2a14d23f9604a7ea5a9776eb1dbc02e28dc7 /src | |
parent | 9a3952f2a17a94ff98494856b1ed9754d7b6ead6 (diff) | |
download | CITResewn-429b299266e9633e325e4d57e2a582fde1666e7a.tar.gz CITResewn-429b299266e9633e325e4d57e2a582fde1666e7a.tar.bz2 CITResewn-429b299266e9633e325e4d57e2a582fde1666e7a.zip |
Fixed item name from properties file name
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/shcm/shsupercm/fabric/citresewn/pack/format/PropertyGroup.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/pack/format/PropertyGroup.java b/src/main/java/shcm/shsupercm/fabric/citresewn/pack/format/PropertyGroup.java index b2806a2..5252330 100644 --- a/src/main/java/shcm/shsupercm/fabric/citresewn/pack/format/PropertyGroup.java +++ b/src/main/java/shcm/shsupercm/fabric/citresewn/pack/format/PropertyGroup.java @@ -49,6 +49,10 @@ public abstract class PropertyGroup { return value; } + public String stripName() { + return identifier.getPath().substring(identifier.getPath().lastIndexOf('/') + 1, identifier.getPath().length() - getExtension().length()); + } + public static PropertyGroup tryParseGroup(String packName, Identifier identifier, InputStream is) throws IOException { PropertyGroup group = null; if (identifier.getPath().endsWith(PropertiesGroupAdapter.EXTENSION)) |