Skip to content

Commit

Permalink
annotate parameter in onPlaceBlock with @NotNull (very important)
Browse files Browse the repository at this point in the history
  • Loading branch information
crxyne committed May 30, 2024
1 parent 6f36837 commit 5da3fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/zeroBzeroT/antiillegals/Events.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void onBlockBreak(@NotNull final BlockBreakEvent event) {
}

@EventHandler(priority = EventPriority.LOW, ignoreCancelled = true)
public void onPlaceBlock(final BlockPlaceEvent event) {
public void onPlaceBlock(@NotNull final BlockPlaceEvent event) {
final Block placedBlock = event.getBlockPlaced();
final Material placedBlockType = placedBlock.getType();
final Location location = placedBlock.getLocation();
Expand Down

0 comments on commit 5da3fea

Please sign in to comment.