Skip to content

Commit

Permalink
Merge pull request #37 from TeamHRLive/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
ceze88 authored Aug 21, 2024
2 parents da7ee89 + 7527e2b commit 37350c1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,6 @@ public void paint() {
),
event -> purchaseBoost(this.player, 5, this.amount));

System.err.println(this.plugin.getLocale().getMessage("interface.boost.cost").toText());

System.err.println(this.plugin.getLocale().getMessage("interface.boost.cost")
.processPlaceholder("cost", getBoostCost(5, this.amount)).toText());

setButton("boost15", 12, GuiUtils.createButtonItem(XMaterial.IRON_INGOT, this.plugin.getLocale().getMessage("interface.boost.boostfor")
.processPlaceholder("amount", "15"),
this.plugin.getLocale().getMessage("interface.boost.cost")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.craftaro.epicspawners.spawners.spawner.option;

import com.craftaro.core.math.MathUtils;
import com.craftaro.core.utils.EntityUtils;
import com.craftaro.core.nms.Nms;
import com.craftaro.epicspawners.EpicSpawners;
import com.craftaro.epicspawners.api.boosts.types.Boosted;
import com.craftaro.epicspawners.api.events.SpawnerSpawnEvent;
Expand Down Expand Up @@ -63,7 +63,8 @@ public void spawn(SpawnerTier data, SpawnerStack stack, PlacedSpawner spawner) {
equation = equation.replace("{RAND}", Integer.toString(randomAmt));
equation = equation.replace("{STACK_SIZE}", Integer.toString(stack.getStackSize()));

spawnCount += MathUtils.eval(equation, "EpicSpawners (Mobs Spawned Per Single Spawn) Equation");
spawnCount += (int) MathUtils.eval(equation, "EpicSpawners (Mobs Spawned Per Single Spawn) Equation");
System.out.println(spawnCount);
}

// Get the max entities allowed around a spawner.
Expand Down Expand Up @@ -108,7 +109,7 @@ public void spawn(SpawnerTier data, SpawnerStack stack, PlacedSpawner spawner) {
}

if (Settings.NO_AI.getBoolean()) {
EntityUtils.setUnaware(entity);
Nms.getImplementations().getEntity().setMobAware(entity,false);
}

this.plugin.getSpawnManager().addUnnaturalSpawn(entity.getUniqueId());
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<url>https://craftaro.com/marketplace/product/13</url>

<properties>
<craftaro.coreVersion>3.1.0-SNAPSHOT</craftaro.coreVersion>
<craftaro.coreVersion>3.3.0-SNAPSHOT</craftaro.coreVersion>

<maven.compiler.release>8</maven.compiler.release>
<maven.compiler.target>1.8</maven.compiler.target>
Expand Down

0 comments on commit 37350c1

Please sign in to comment.