Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
DundiGundi committed Apr 24, 2024
1 parent 0bea52e commit 17927bd
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ public ItemStack clickInventorySlot(InventoryAction action, int[] args, EntityPl
this.onCraftMatrixChanged(inventory);
return null;
}
if(slotId >= 0 && slotId <= 4 && ((IEntityPlayer)player).isDietScreenActive()){ //HERE IS THE CHANGE

/*HERE IS THE CHANGE*/

if(slotId >= 0 && slotId <= 4 && ((IEntityPlayer)player).isDietScreenActive()){
return null;
}
ItemStack controlStack = null;
Expand Down

0 comments on commit 17927bd

Please sign in to comment.