Skip to content

Commit

Permalink
Make ItemStack final in PreShopCreationEvent class
Browse files Browse the repository at this point in the history
The change includes making `itemStack` final in the `PreShopCreationEvent` class. It ensures that the item details remain constant and secure during the process of shop creation. This improves data integrity and allows consistent information to be shared with the player during sign creation.
  • Loading branch information
Feli499 committed Dec 31, 2023
1 parent a7944fd commit 99d832c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -19,7 +19,7 @@ public class PreShopCreationEvent extends Event {
private CreationOutcome outcome = CreationOutcome.SHOP_CREATED_SUCCESSFULLY;
private Sign sign;
private String[] signLines;
private ItemStack itemStack;
private final ItemStack itemStack;

public PreShopCreationEvent(Player creator, Sign sign, String[] signLines, ItemStack itemStack) {
this.creator = creator;
Expand Down

0 comments on commit 99d832c

Please sign in to comment.