Skip to content

Commit

Permalink
Added removeColor for EntityTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
Emafire003 committed Apr 4, 2022
1 parent af00c19 commit daef8c7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G
loader_version=0.13.3

# Mod Properties
mod_version = 1.2.6
mod_version = 1.2.7
maven_group = me.emafire003.dev
archives_base_name = coloredglowlib

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ public static void removeColor(Entity entity){
ColoredGlowLib.removeColorFromEntity(entity);
}

/**This method removes every color from an EntityType, restoring it
* to the default one. (both rainbow & non rainbow)*/
public static void removeColor(EntityType type){
ColoredGlowLib.setRainbowColorToEntityType(type, false);
ColoredGlowLib.removeColorFromEntityType(type);
}

private static void getValuesFromFile(){
try{
DataSaver.createFile();
Expand Down

0 comments on commit daef8c7

Please sign in to comment.