mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-27 21:22:57 +00:00
Tint Code Refactoring and some cleanup wo the lang file
This commit is contained in:
1 parent
d75a054118
commit
ea0b8ec5a4
8 files changed
+85
-84
No files matched your search
@@ -389,7 +389,7 @@ public class ModelLegs extends ModelScaleRenderer{
|
||||
}
|
||||
CustomTintData customTintData = entity.display.customTintData;
|
||||
boolean bo = entity.hurtTime <= 0 && entity.deathTime <= 0 && !base.isArmor &&
|
||||
!(customTintData.isEnableCustomTint() && customTintData.isEnableNpcTint());
|
||||
!(customTintData.isTintEnabled() && customTintData.isGeneralTintEnabled());
|
||||
if(bo){
|
||||
float red = (entity.modelData.legParts.color >> 16 & 255) / 255f;
|
||||
float green = (entity.modelData.legParts.color >> 8 & 255) / 255f;
|
||||
|
||||
@@ -153,7 +153,7 @@ public class ModelTail extends ModelScaleRenderer {
|
||||
}
|
||||
CustomTintData customTintData = entity.display.customTintData;
|
||||
boolean bo = entity.hurtTime <= 0 && entity.deathTime <= 0 && !base.isArmor &&
|
||||
!(customTintData.isEnableCustomTint() && customTintData.isEnableNpcTint());
|
||||
!(customTintData.isTintEnabled() && customTintData.isGeneralTintEnabled());
|
||||
if(bo){
|
||||
float red = (color >> 16 & 255) / 255f;
|
||||
float green = (color >> 8 & 255) / 255f;
|
||||
|
||||
@@ -62,7 +62,7 @@ public abstract class ModelPartInterface extends ModelRenderer {
|
||||
}
|
||||
CustomTintData customTintData = entity.display.customTintData;
|
||||
boolean bo = entity.hurtTime <= 0 && entity.deathTime <= 0 && !base.isArmor &&
|
||||
!(customTintData.isEnableCustomTint() && customTintData.isEnableNpcTint());
|
||||
!(customTintData.isTintEnabled() && customTintData.isGeneralTintEnabled());
|
||||
if(bo){
|
||||
float red = (color >> 16 & 255) / 255f;
|
||||
float green = (color >> 8 & 255) / 255f;
|
||||
|
||||
Reference in new issue
Block a user