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..."); } };