Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
TheidenHD committed Jun 16, 2024
1 parent a473e12 commit 6663a7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ mapping_channel=parchment
mod_id=psi
forge_version=43.3.0
jei_version=11.6.0.1013
build_number=101
build_number=102
patchy_version=1.19.2-77
dir_output=../Build Output/Psi/
version=1.19
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 6663a7d

Please sign in to comment.