Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
TheidenHD committed Jun 12, 2024
1 parent 1931b4f commit 6d6fe40
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#Sun Apr 09 14:41:44 WEST 2023
mapping_channel=parchment
mod_id=psi
forge_version=47.1.47
forge_version=47.3.0
jei_version=15.2.0.27
build_number=102
patchy_version=1.20.1-83-FORGE
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/vazkii/psi/client/gui/GuiCADAssembler.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ protected void renderLabels(GuiGraphics graphics, int mouseX, int mouseY) {
int color = 4210752;

String name = new ItemStack(ModBlocks.cadAssembler).getHoverName().getString();
graphics.drawString(this.font, name, imageWidth / 2 - font.width(name) / 2, 10, color);
graphics.drawString(this.font, name, imageWidth / 2 - font.width(name) / 2, 10, color, false);

ItemStack cad = assembler.getCachedCAD(player);
if(!cad.isEmpty()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static boolean isContributor(String name) {

@SubscribeEvent
public static void onCadTake(CADTakeEvent event) {
if(ContributorSpellCircleHandler.isContributor(event.getPlayer().getName().getString().toLowerCase(Locale.ROOT)) && !((ICAD) event.getCad().getItem()).getComponentInSlot(event.getCad(), EnumCADComponent.DYE).isEmpty()) {
if(ContributorSpellCircleHandler.isContributor(event.getPlayer().getName().getString().toLowerCase(Locale.ROOT)) && !event.getCad().isEmpty() && !((ICAD) event.getCad().getItem()).getComponentInSlot(event.getCad(), EnumCADComponent.DYE).isEmpty()) {
ItemStack dyeStack = ((ICAD) event.getCad().getItem()).getComponentInSlot(event.getCad(), EnumCADComponent.DYE);
((ICADColorizer) dyeStack.getItem()).setContributorName(dyeStack, event.getPlayer().getName().getString());
ItemCAD.setComponent(event.getCad(), dyeStack);
Expand Down

0 comments on commit 6d6fe40

Please sign in to comment.