From c7506d863b9fbd2da8ffbd81f4b1d02c47969425 Mon Sep 17 00:00:00 2001 From: iTwins Date: Wed, 6 Dec 2023 20:30:44 +0100 Subject: [PATCH] revert these unnecessary changes as well --- .../slimefun4/core/machines/MachineProcessor.java | 2 +- .../slimefun4/implementation/items/geo/GEOMiner.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/io/github/thebusybiscuit/slimefun4/core/machines/MachineProcessor.java b/src/main/java/io/github/thebusybiscuit/slimefun4/core/machines/MachineProcessor.java index dd2349e196..9ec92b578a 100644 --- a/src/main/java/io/github/thebusybiscuit/slimefun4/core/machines/MachineProcessor.java +++ b/src/main/java/io/github/thebusybiscuit/slimefun4/core/machines/MachineProcessor.java @@ -187,7 +187,7 @@ public boolean startOperation(@Nonnull BlockPosition pos, @Nonnull T operation) * {@link MachineOperation} to begin with. */ public boolean endOperation(@Nonnull Location loc) { - Validate.notNull(b, "The Block should not be null"); + Validate.notNull(loc, "The location should not be null"); return endOperation(new BlockPosition(loc)); } diff --git a/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/geo/GEOMiner.java b/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/geo/GEOMiner.java index e8bc21fa64..cc09eb0ac6 100644 --- a/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/geo/GEOMiner.java +++ b/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/geo/GEOMiner.java @@ -121,7 +121,7 @@ public int getSpeed() { * * @return This method will return the current instance of {@link GEOMiner}, so that can be chained. */ - public final @Nonnull GEOMiner setCapacity(int capacity) { + public final GEOMiner setCapacity(int capacity) { Validate.isTrue(capacity > 0, "The capacity must be greater than zero!"); if (getState() == ItemState.UNREGISTERED) { @@ -193,7 +193,7 @@ private BlockPlaceHandler onBlockPlace() { return new BlockPlaceHandler(false) { @Override - public void onPlayerPlace( BlockPlaceEvent e) { + public void onPlayerPlace(BlockPlaceEvent e) { updateHologram(e.getBlock(), "&7Idling..."); } };