Skip to content

Commit

Permalink
1.17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BenceX100 committed Dec 8, 2024
1 parent 5f91b62 commit 4509ad8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.artillexstudios</groupId>
<artifactId>AxGraves</artifactId>
<version>1.16.0</version>
<version>1.17.0</version>
<packaging>jar</packaging>

<name>AxGraves</name>
Expand Down Expand Up @@ -106,7 +106,7 @@
<dependency>
<groupId>com.artillexstudios.axapi</groupId>
<artifactId>axapi</artifactId>
<version>1.4.403</version>
<version>1.4.435</version>
<scope>compile</scope>
<classifier>all</classifier>
</dependency>
Expand Down
17 changes: 10 additions & 7 deletions src/main/java/com/artillexstudios/axgraves/AxGraves.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
import com.artillexstudios.axapi.libs.boostedyaml.boostedyaml.settings.general.GeneralSettings;
import com.artillexstudios.axapi.libs.boostedyaml.boostedyaml.settings.loader.LoaderSettings;
import com.artillexstudios.axapi.libs.boostedyaml.boostedyaml.settings.updater.UpdaterSettings;
import com.artillexstudios.axapi.utils.FeatureFlags;
import com.artillexstudios.axapi.utils.MessageUtils;
import com.artillexstudios.axapi.utils.featureflags.FeatureFlags;
import com.artillexstudios.axgraves.commands.Commands;
import com.artillexstudios.axgraves.grave.Grave;
import com.artillexstudios.axgraves.grave.SpawnedGraves;
Expand Down Expand Up @@ -68,8 +68,11 @@ public void disable() {
for (Grave grave : SpawnedGraves.getGraves()) {
if (!CONFIG.getBoolean("save-graves.enabled", true))
grave.remove();
grave.getEntity().remove();
grave.getHologram().remove();

if (grave.getEntity() != null)
grave.getEntity().remove();
if (grave.getHologram() != null)
grave.getHologram().remove();
}

if (CONFIG.getBoolean("save-graves.enabled", true))
Expand All @@ -78,9 +81,9 @@ public void disable() {
EXECUTOR.shutdown();
}

public void updateFlags() {
FeatureFlags.USE_LEGACY_HEX_FORMATTER.set(true);
FeatureFlags.PACKET_ENTITY_TRACKER_ENABLED.set(true);
FeatureFlags.HOLOGRAM_UPDATE_TICKS.set(5L);
public void updateFlags(FeatureFlags flags) {
flags.USE_LEGACY_HEX_FORMATTER.set(true);
flags.PACKET_ENTITY_TRACKER_ENABLED.set(true);
flags.HOLOGRAM_UPDATE_TICKS.set(5L);
}
}

0 comments on commit 4509ad8

Please sign in to comment.