Compare commits

..

1 Commits

Author SHA1 Message Date
ebbbb6c670 fix: annotate ExpireManager with @Inject 2022-10-17 18:58:39 +02:00
6 changed files with 8 additions and 17 deletions

View File

@ -104,12 +104,6 @@ public class BlockEventListener117 implements Listener {
if (entity instanceof Item item) { if (entity instanceof Item item) {
UUID itemThrower = item.getThrower(); UUID itemThrower = item.getThrower();
if (plot != null) { if (plot != null) {
if (itemThrower == null && (itemThrower = item.getOwner()) == null) {
plot.debug(
"A thrown item couldn't trigger sculk sensors because misc-interact = false and the item's owner could not be resolved.");
event.setCancelled(true);
return;
}
if (!plot.isAdded(itemThrower)) { if (!plot.isAdded(itemThrower)) {
if (!plot.isAdded(itemThrower)) { if (!plot.isAdded(itemThrower)) {
plot.debug("A thrown item couldn't trigger sculk sensors because misc-interact = false"); plot.debug("A thrown item couldn't trigger sculk sensors because misc-interact = false");

View File

@ -289,7 +289,7 @@ public interface PlotPlatform<P> extends LocaleHolder {
* Get the {@link ExpireManager} implementation for the platform * Get the {@link ExpireManager} implementation for the platform
* *
* @return Expire manager * @return Expire manager
* @since 6.10.2 * @since TODO
*/ */
default @NonNull ExpireManager expireManager() { default @NonNull ExpireManager expireManager() {
return injector().getInstance(ExpireManager.class); return injector().getInstance(ExpireManager.class);

View File

@ -298,10 +298,7 @@ public class HybridPlotWorld extends ClassicPlotWorld {
int roadSchemHeight; int roadSchemHeight;
if (schematic1 != null) { if (schematic1 != null) {
roadSchemHeight = Math.max( roadSchemHeight = schematic1.getClipboard().getDimensions().getY();
schematic1.getClipboard().getDimensions().getY(),
schematic2.getClipboard().getDimensions().getY()
);
maxSchematicHeight = Math.max(roadSchemHeight, maxSchematicHeight); maxSchematicHeight = Math.max(roadSchemHeight, maxSchematicHeight);
if (maxSchematicHeight == worldGenHeight) { if (maxSchematicHeight == worldGenHeight) {
SCHEM_Y = getMinGenHeight(); SCHEM_Y = getMinGenHeight();
@ -489,7 +486,7 @@ public class HybridPlotWorld extends ClassicPlotWorld {
/** /**
* @deprecated This method should not be available for public API usage and will be made private. * @deprecated This method should not be available for public API usage and will be made private.
*/ */
@Deprecated(forRemoval = true, since = "6.10.2") @Deprecated(forRemoval = true, since = "TODO")
public void addOverlayBlock(short x, short y, short z, BaseBlock id, boolean rotate, int height) { public void addOverlayBlock(short x, short y, short z, BaseBlock id, boolean rotate, int height) {
if (z < 0) { if (z < 0) {
z += this.SIZE; z += this.SIZE;
@ -524,7 +521,7 @@ public class HybridPlotWorld extends ClassicPlotWorld {
/** /**
* @deprecated This method should not be available for public API usage and will be made private. * @deprecated This method should not be available for public API usage and will be made private.
*/ */
@Deprecated(forRemoval = true, since = "6.10.2") @Deprecated(forRemoval = true, since = "TODO")
public void addOverlayBiome(short x, short z, BiomeType id) { public void addOverlayBiome(short x, short z, BiomeType id) {
if (z < 0) { if (z < 0) {
z += this.SIZE; z += this.SIZE;

View File

@ -112,7 +112,7 @@ public final class PlotId {
* @return Plot ID copy * @return Plot ID copy
* @deprecated PlotId is immutable, copy is not required. * @deprecated PlotId is immutable, copy is not required.
*/ */
@Deprecated(forRemoval = true, since = "6.10.2") @Deprecated(forRemoval = true, since = "TODO")
public @NonNull PlotId copy() { public @NonNull PlotId copy() {
return this; return this;
} }

View File

@ -65,7 +65,7 @@ public class ExpireManager {
/** /**
* @deprecated Use {@link PlotPlatform#expireManager()} instead * @deprecated Use {@link PlotPlatform#expireManager()} instead
*/ */
@Deprecated(forRemoval = true, since = "6.10.2") @Deprecated(forRemoval = true, since = "TODO")
public static ExpireManager IMP; public static ExpireManager IMP;
private final ConcurrentHashMap<UUID, Long> dates_cache; private final ConcurrentHashMap<UUID, Long> dates_cache;
private final ConcurrentHashMap<UUID, Long> account_age_cache; private final ConcurrentHashMap<UUID, Long> account_age_cache;

View File

@ -19,7 +19,7 @@ plugins {
} }
group = "com.plotsquared" group = "com.plotsquared"
version = "6.10.4-SNAPSHOT" version = "6.10.2-SNAPSHOT"
subprojects { subprojects {
group = rootProject.group group = rootProject.group
@ -65,7 +65,7 @@ subprojects {
} }
dependencies { dependencies {
implementation(platform("com.intellectualsites.bom:bom-1.18.x:1.18")) implementation(platform("com.intellectualsites.bom:bom-1.18.x:1.16"))
} }
dependencies { dependencies {