Disabled capability logs. Using build mode enum name to get icon.
This commit is contained in:
@@ -12,7 +12,7 @@ apply plugin: 'net.minecraftforge.gradle'
|
||||
apply plugin: 'eclipse'
|
||||
apply plugin: 'maven-publish'
|
||||
|
||||
version = '1.18-2.38'
|
||||
version = '1.18-2.40'
|
||||
group = 'nl.requios.effortlessbuilding' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||
archivesBaseName = 'effortlessbuilding'
|
||||
|
||||
|
||||
@@ -274,6 +274,10 @@ public class BuildModes {
|
||||
this.options = options;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public String getNameKey() {
|
||||
return "effortlessbuilding.mode." + name;
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ public class ModeSettingsManager {
|
||||
return capability.getModeData();
|
||||
}
|
||||
|
||||
EffortlessBuilding.logger.warn("Player does not have modeCapability: " + player);
|
||||
// EffortlessBuilding.logger.warn("Player does not have modeCapability: " + player);
|
||||
//Return dummy settings
|
||||
return new ModeSettings();
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ public class ModifierSettingsManager {
|
||||
return capability.getModifierData();
|
||||
}
|
||||
|
||||
EffortlessBuilding.logger.warn("Player does not have modifierCapability: " + player);
|
||||
// EffortlessBuilding.logger.warn("Player does not have modifierCapability: " + player);
|
||||
//Return dummy settings
|
||||
return new ModifierSettings();
|
||||
}
|
||||
|
||||
@@ -288,7 +288,7 @@ public class RadialMenu extends Screen {
|
||||
final double x = (menuRegion.x1 + menuRegion.x2) * 0.5 * (ringOuterEdge * 0.55 + 0.45 * ringInnerEdge);
|
||||
final double y = (menuRegion.y1 + menuRegion.y2) * 0.5 * (ringOuterEdge * 0.55 + 0.45 * ringInnerEdge);
|
||||
|
||||
RenderSystem.setShaderTexture(0, new ResourceLocation(EffortlessBuilding.MODID, "textures/icons/" + menuRegion.mode.name().toLowerCase() + ".png"));
|
||||
RenderSystem.setShaderTexture(0, new ResourceLocation(EffortlessBuilding.MODID, "textures/icons/" + menuRegion.mode.getName() + ".png"));
|
||||
blit(ms, (int) (middleX + x - 8), (int) (middleY + y - 8), 16, 16, 0, 0, 18, 18, 18, 18);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user