Skip to content

Commit

Permalink
Merge pull request #782 from VolmitSoftware/Development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
NextdoorPsycho authored Apr 13, 2022
2 parents 03554eb + d315e99 commit 5b3918f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 133 deletions.
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ dependencies {
annotationProcessor 'org.projectlombok:lombok:1.18.22'
implementation 'org.spigotmc:spigot-api:1.18.2-R0.1-SNAPSHOT'
implementation 'me.clip:placeholderapi:2.11.1'
implementation 'io.th0rgal:oraxen:1.94.0'
implementation 'org.bukkit:craftbukkit:1.18.2-R0.1-SNAPSHOT:remapped-mojang'

// Shaded
Expand Down
4 changes: 0 additions & 4 deletions src/main/java/com/volmit/iris/Iris.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import com.volmit.iris.core.link.IrisPapiExpansion;
import com.volmit.iris.core.link.MultiverseCoreLink;
import com.volmit.iris.core.link.MythicMobsLink;
import com.volmit.iris.core.link.OraxenLink;
import com.volmit.iris.core.loader.IrisData;
import com.volmit.iris.core.nms.INMS;
import com.volmit.iris.core.service.StudioSVC;
Expand Down Expand Up @@ -65,7 +64,6 @@
import org.bukkit.WorldCreator;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.configuration.InvalidConfigurationException;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.entity.Player;
Expand Down Expand Up @@ -95,7 +93,6 @@ public class Iris extends VolmitPlugin implements Listener {
public static Iris instance;
public static BukkitAudiences audiences;
public static MultiverseCoreLink linkMultiverseCore;
public static OraxenLink linkOraxen;
public static MythicMobsLink linkMythicMobs;
public static IrisCompat compat;
public static FileWatcher configWatcher;
Expand Down Expand Up @@ -401,7 +398,6 @@ private void enable() {
instance = this;
compat = IrisCompat.configured(getDataFile("compat.json"));
linkMultiverseCore = new MultiverseCoreLink();
linkOraxen = new OraxenLink();
linkMythicMobs = new MythicMobsLink();
configWatcher = new FileWatcher(getDataFile("settings.json"));
services.values().forEach(IrisService::onEnable);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,11 @@ public void paste(

Map<Block, BlockData> futureChanges = new HashMap<>();

o = o.scaled(scale, IrisObjectPlacementScaleInterpolator.TRICUBIC);
if(scale != 1)
{
o = o.scaled(scale, IrisObjectPlacementScaleInterpolator.TRICUBIC);
}

o.place(block.getBlockX(), block.getBlockY() + (int) o.getCenter().getY(), block.getBlockZ(), createPlacer(block.getWorld(), futureChanges), placement, new RNG(), null);

Iris.service(ObjectSVC.class).addChanges(futureChanges);
Expand Down
113 changes: 0 additions & 113 deletions src/main/java/com/volmit/iris/core/link/OraxenLink.java

This file was deleted.

3 changes: 1 addition & 2 deletions src/main/java/com/volmit/iris/engine/IrisComplex.java
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,7 @@ private double getInterpolatedHeight(Engine engine, double x, double z, long see
}

private double getHeight(Engine engine, IrisBiome b, double x, double z, long seed) {
return Math.min(engine.getWorld().maxHeight(),
Math.max(getInterpolatedHeight(engine, x, z, seed) + fluidHeight + overlayStream.get(x, z), engine.getWorld().minHeight()));
return Math.max(Math.min(getInterpolatedHeight(engine, x, z, seed) + fluidHeight + overlayStream.get(x, z), engine.getHeight()), 0);
}

private void registerGenerator(IrisGenerator cachedGenerator) {
Expand Down
12 changes: 0 additions & 12 deletions src/main/java/com/volmit/iris/util/data/B.java
Original file line number Diff line number Diff line change
Expand Up @@ -462,10 +462,6 @@ private static BlockData parseBlockData(String ix) {
BlockData bx = null;

if(!ix.startsWith("minecraft:")) {
if(ix.startsWith("oraxen:") && Iris.linkOraxen.supported()) {
bx = Iris.linkOraxen.getBlockDataFor(ix.split("\\Q:\\E")[1]);
}

if(bx == null) {
try {
if(ix.contains(":")) {
Expand Down Expand Up @@ -652,14 +648,6 @@ public synchronized static String[] getBlockTypes() {
}
}

try {
for(String i : Iris.linkOraxen.getItemTypes()) {
bt.add("oraxen:" + i);
}
} catch(Throwable e) {
e.printStackTrace();
}

try {
bt.addAll(Iris.service(RegistrySVC.class).getCustomBlockRegistry().compile());
} catch(Throwable e) {
Expand Down

0 comments on commit 5b3918f

Please sign in to comment.