Skip to content

Commit

Permalink
explain the significance of slot #41
Browse files Browse the repository at this point in the history
Signed-off-by: Erymanthus[#5074] | (u/)RayDeeUx <[email protected]>
  • Loading branch information
RayDeeUx committed Jan 21, 2024
1 parent 7826f25 commit faefdef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class GeorgeDisplay {
fun onInventoryOpen(event: InventoryOpenEvent) {
if (!isEnabled()) return
if (!offerPetsChestPattern.matches(event.inventoryName)) return
val stack = event.inventoryItems[41] ?: return
val stack = event.inventoryItems[41] ?: return //slot #41 = spawn egg with the tooltip
if (!increaseCapItemPattern.matches(stack.cleanName())) return
display = drawDisplay(stack.getLore())
}
Expand Down

0 comments on commit faefdef

Please sign in to comment.