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: 'eclipse'
|
||||||
apply plugin: 'maven-publish'
|
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
|
group = 'nl.requios.effortlessbuilding' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||||
archivesBaseName = 'effortlessbuilding'
|
archivesBaseName = 'effortlessbuilding'
|
||||||
|
|
||||||
@@ -137,4 +137,4 @@ publishing {
|
|||||||
url "file:///${project.projectDir}/mcmodsrepo"
|
url "file:///${project.projectDir}/mcmodsrepo"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -273,6 +273,10 @@ public class BuildModes {
|
|||||||
this.category = category;
|
this.category = category;
|
||||||
this.options = options;
|
this.options = options;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
public String getNameKey() {
|
public String getNameKey() {
|
||||||
return "effortlessbuilding.mode." + name;
|
return "effortlessbuilding.mode." + name;
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ public class ModeSettingsManager {
|
|||||||
return capability.getModeData();
|
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 dummy settings
|
||||||
return new ModeSettings();
|
return new ModeSettings();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ public class ModifierSettingsManager {
|
|||||||
return capability.getModifierData();
|
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 dummy settings
|
||||||
return new ModifierSettings();
|
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 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);
|
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);
|
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