Skip to content

Commit

Permalink
Fix inverted conditions for force night
Browse files Browse the repository at this point in the history
  • Loading branch information
rainbowdashlabs committed Apr 4, 2024
1 parent fff643a commit f7467ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ public void onCommand(@NotNull CommandSender sender, @NotNull String alias, @Not
world = args.asWorld(0, world);

boolean enabled = configuration.getWorldSettings(world).isEnabled();
CommandAssertions.isTrue(!enabled, "error.worldNotEnabled", Replacement.create("WORLD", world));
CommandAssertions.isTrue(!nightManager.getBloodWorldsSet().contains(world), "forceNight.alreadyActive",
CommandAssertions.isTrue(enabled, "error.worldNotEnabled", Replacement.create("WORLD", world));
CommandAssertions.isFalse(nightManager.getBloodWorldsSet().contains(world), "forceNight.alreadyActive",
Replacement.create("WORLD", world.getName()));
nightManager.forceNight(world);
messageSender().sendMessage(sender, "forceNight.enabled",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ public class GhostCreeper extends ExtendedSpecialMob<Vex, Creeper> {
public GhostCreeper(Creeper creeper) {
super(EntityType.VEX, creeper);
Version optVersion = ServerVersion.getVersion();
// Entites can be invisible since 1.16.3. Hotfix for backwards compatibiliy to spigot 1.16.2
getBaseEntity().setInvulnerable(true);
getBaseEntity().setInvisible(true);
new BukkitRunnable() {
@Override
public void run() {
Expand Down

0 comments on commit f7467ca

Please sign in to comment.