Skip to content

Commit

Permalink
Fix Occasional Crash
Browse files Browse the repository at this point in the history
  • Loading branch information
IntegerLimit committed Mar 19, 2024
1 parent 1bc7425 commit a6d6751
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static void addToHand(GsHandEvent event) {
event.messages.add(new TextComponentString(""));
addToMessage(event, material.copy(1), false);

if (material.material.getMaterialComponents().isEmpty()) return;
if (material.material.getMaterialComponents() == null || material.material.getMaterialComponents().isEmpty()) return;
event.messages.add(new TextComponentTranslation("nomilabs.command.gs_hand.material_components"));
for (var component : material.material.getMaterialComponents()) {
addToMessage(event, component, true);
Expand Down

0 comments on commit a6d6751

Please sign in to comment.