Skip to content

Commit

Permalink
EliteMobs 8.6.2
Browse files Browse the repository at this point in the history
- [New] Updated EliteMobs to be compatible with MC 1.20.2
- [Fix] Fixed bug related to having dungeons installed but not having worldguard
- [Fix] Fixed error related to reloads and dynamic quests
- [Fix] Fixed issue where some plugins would force pick up visual items

Signed-off-by: MagmaGuy <tiagoarnaut@gmail.com>
  • Loading branch information
MagmaGuy committed Oct 8, 2023
1 parent 8f0ad6f commit beb9328
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ processResources {
}

group 'com.magmaguy'
version '8.6.1-SNAPSHOT'
version '8.6.2-SNAPSHOT'

repositories {
maven {
Expand Down Expand Up @@ -120,10 +120,10 @@ dependencies {
//Model Engine
compileOnly "com.ticxo.modelengine:api:R3.1.7"

implementation group: 'com.magmaguy', name: 'EasyMinecraftGoals-dist', version: '1.5.0'
implementation group: 'com.magmaguy', name: 'EasyMinecraftGoals-dist', version: '1.6.1'

//Local test, you can ignore this
//implementation files('C:\\Users\\Tiago\\Documents\\MineCraftProjects\\EasyMinecraftGoals\\EasyMinecraftGoals\\dist\\target\\EasyMinecraftGoals-dist-1.0.0-shaded.jar')
//implementation files('C:\\Users\\Tiago\\Documents\\MineCraftProjects\\EasyMinecraftGoals\\EasyMinecraftGoals\\dist\\target\\EasyMinecraftGoals-dist-1.6.0-shaded.jar')
}

artifacts { // task 'build' runs generates uberjar
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.magmaguy.elitemobs.dungeons;

import com.magmaguy.elitemobs.EliteMobs;
import com.magmaguy.elitemobs.config.dungeonpackager.DungeonPackagerConfigFields;
import com.magmaguy.elitemobs.dungeons.utility.DungeonUtils;
import com.magmaguy.elitemobs.entitytracker.EntityTracker;
Expand Down Expand Up @@ -38,7 +39,7 @@ private void initializeWormholeWorld() {
!dungeonPackagerConfigFields.getWormholeWorldName().isEmpty() &&
Bukkit.getWorld(dungeonPackagerConfigFields.getWormholeWorldName()) == null) {
wormholeWorld = DungeonUtils.loadWorld(this.getDungeonPackagerConfigFields().getWormholeWorldName(), this.getDungeonPackagerConfigFields().getEnvironment());
if (wormholeWorld != null)
if (wormholeWorld != null && EliteMobs.worldGuardIsEnabled)
WorldGuardCompatibility.protectWorldMinidugeonArea(Objects.requireNonNull(wormholeWorld).getSpawnLocation(), this);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ private Item generateCurrencyItem(Material material, Location location, double v
}
setCoinModel(currencyItemStack, model);
Item currencyItem = location.getWorld().dropItem(location.clone().add(new Vector(0, 1, 0)), currencyItemStack);
currencyItem.setPickupDelay(Integer.MAX_VALUE);
EntityTracker.registerVisualEffects(currencyItem);
currencyItem.setInvulnerable(true);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,8 @@ public void run() {
}

public static void configureVisualProjectile(Item goldNugget) {

EntityTracker.registerVisualEffects(goldNugget);
goldNugget.setPickupDelay(Integer.MAX_VALUE);

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ protected void activate(EliteEntity eliteEntity) {
protected abstract void finishActivation(EliteEntity eliteEntity);

public void deactivate(EliteEntity eliteEntity) {
if (bukkitTask != null)
bukkitTask.cancel();
if (bukkitTask != null) bukkitTask.cancel();
isActive = false;
finishDeactivation(eliteEntity);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public void run() {

public static void shutdown() {
threeRandomDynamicObjectives.clear();
if (randomizerTask != null)
randomizerTask.cancel();
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: EliteMobs
version: 8.6.1
version: 8.6.2
author: MagmaGuy
main: com.magmaguy.elitemobs.EliteMobs
api-version: 1.14
Expand Down

0 comments on commit beb9328

Please sign in to comment.