9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-26 02:29:14 +00:00

Compare commits

..

2 Commits

Author SHA1 Message Date
Aidan Aeternum
910220d3ca v+ 2025-01-08 18:22:26 -08:00
Aidan Aeternum
fc05c24e3a Merge pull request #1135 from VolmitSoftware/dev
3.5.3
2025-01-08 18:20:43 -08:00
5 changed files with 5 additions and 67 deletions

View File

@@ -32,7 +32,7 @@ plugins {
id "de.undercouch.download" version "5.0.1"
}
version '3.5.2-1.19.2-1.21.3'
version '3.5.3-1.19.2-1.21.3'
// ADD YOURSELF AS A NEW LINE IF YOU WANT YOUR OWN BUILD TASK GENERATED
// ======================== WINDOWS =============================
@@ -45,7 +45,6 @@ registerCustomOutputTask('Vatuu', 'D://Minecraft/Servers/1.19.4/plugins')
registerCustomOutputTask('CrazyDev22', 'C://Users/Julian/Desktop/server/plugins')
registerCustomOutputTask('PixelFury', 'C://Users/repix/workplace/Iris/1.21.3 - Development-Public-v3/plugins')
registerCustomOutputTask('PixelFuryDev', 'C://Users/repix/workplace/Iris/1.21 - Development-v3/plugins')
registerCustomOutputTask('PixelFuryEngine', 'C://Users/repix/workplace/Iris/1.21.3 - Development-Engine-v3/plugins')
// ========================== UNIX ==============================
registerCustomOutputTaskUnix('CyberpwnLT', '/Users/danielmills/development/server/plugins')
registerCustomOutputTaskUnix('PsychoLT', '/Users/brianfopiano/Developer/RemoteGit/Server/plugins')

View File

@@ -105,12 +105,6 @@ public class IrisComplex implements DataProvider {
if (focusBiome != null) {
focusBiome.setInferredType(InferredType.LAND);
focusRegion = findRegion(focusBiome, engine);
focusBiome.getGenerators().forEach((c) -> registerGenerator(c.getCachedGenerator(this)));
} else if (focusRegion != null) {
data.getRegionLoader().load(focusRegion.getLoadKey())
.getAllBiomes(this).forEach((b) -> b
.getGenerators()
.forEach((c) -> registerGenerator(c.getCachedGenerator(this))));
}
//@builder

View File

@@ -18,21 +18,14 @@
package com.volmit.iris.engine.decorator;
import com.volmit.iris.Iris;
import com.volmit.iris.engine.data.cache.Cache;
import com.volmit.iris.engine.framework.Engine;
import com.volmit.iris.engine.object.IrisBiome;
import com.volmit.iris.engine.object.IrisDecorationPart;
import com.volmit.iris.engine.object.IrisDecorator;
import com.volmit.iris.util.data.B;
import com.volmit.iris.util.documentation.BlockCoordinates;
import com.volmit.iris.util.hunk.Hunk;
import org.bukkit.Material;
import org.bukkit.block.BlockFace;
import org.bukkit.block.data.Bisected;
import org.bukkit.block.data.BlockData;
import org.bukkit.block.data.MultipleFacing;
import org.bukkit.block.data.Waterlogged;
public class IrisSeaFloorDecorator extends IrisEngineDecorator {
public IrisSeaFloorDecorator(Engine engine) {
@@ -45,53 +38,21 @@ public class IrisSeaFloorDecorator extends IrisEngineDecorator {
IrisDecorator decorator = getDecorator(biome, realX, realZ);
if (decorator != null) {
var bdx = data.get(x, height - 1, z);
if (!decorator.isStacking()) {
var bd = decorator.getBlockData100(biome, getRng(), realX, height, realZ, getData());
if ((!canGoOn(bd, bdx)
|| (bd instanceof Bisected
? (data.get(x, height, z).isOccluding() || data.get(x, height + 1, z).isOccluding())
: data.get(x, height, z).isOccluding()))
&& !decorator.isForcePlace() && decorator.getForceBlock() == null)
return;
if (!decorator.isForcePlace() && !decorator.getSlopeCondition().isDefault()
&& !decorator.getSlopeCondition().isValid(getComplex().getSlopeStream().get(realX, realZ))) {
return;
}
if (bd instanceof Bisected) {
bd = bd.clone();
((Bisected) bd).setHalf(Bisected.Half.TOP);
try {
data.set(x, height + 1, z, bd);
} catch (Throwable e) {
Iris.reportError(e);
}
bd = bd.clone();
((Bisected) bd).setHalf(Bisected.Half.BOTTOM);
}
if (height >= 0 || height < getEngine().getHeight()) {
data.set(x, height, z, bd);
data.set(x, height, z, decorator.getBlockData100(biome, getRng(), realX, height, realZ, getData()));
}
} else {
var bd = decorator.getBlockData100(biome, getRng(), realX, height, realZ, getData());
if (((!canGoOn(bd, bdx) || data.get(x, height, z).isOccluding()) && (!decorator.isForcePlace() && decorator.getForceBlock() == null)))
return;
int stack = decorator.getHeight(getRng().nextParallelRNG(Cache.key(realX, realZ)), realX, realZ, getData());
if (decorator.isScaleStack()) {
int maxStack = max - height;
stack = (int) Math.ceil((double) maxStack * ((double) stack / 100));
} else stack = Math.min(stack, max - height);
for (int i = 1; i < stack; i++) {
var block = data.get(x, height + i + 1, z);
if ((block.isOccluding()) && (!decorator.isForcePlace() && decorator.getForceBlock() == null))
return;
}
if (stack == 1) {
data.set(x, height, z, decorator.getBlockDataForTop(biome, getRng(), realX, height, realZ, getData()));
return;
@@ -104,15 +65,12 @@ public class IrisSeaFloorDecorator extends IrisEngineDecorator {
}
double threshold = ((double) i) / (stack - 1);
BlockData block = threshold >= decorator.getTopThreshold() ?
data.set(x, h, z, threshold >= decorator.getTopThreshold() ?
decorator.getBlockDataForTop(biome, getRng(), realX, h, realZ, getData()) :
decorator.getBlockData100(biome, getRng(), realX, h, realZ, getData());
if (block instanceof Waterlogged wblock)
wblock.setWaterlogged(true);
data.set(x, h, z, block);
decorator.getBlockData100(biome, getRng(), realX, h, realZ, getData()));
}
}
}
}
}

View File

@@ -61,12 +61,6 @@ public class IrisSurfaceDecorator extends IrisEngineDecorator {
if (!decorator.isStacking()) {
bd = decorator.getBlockData100(biome, getRng(), realX, height, realZ, getData());
if (((bd instanceof Bisected
? (data.get(x, height + 1, z).isOccluding() || data.get(x, height + 2, z).isOccluding())
: data.get(x, height + 1, z).isOccluding()))
&& !decorator.isForcePlace() && decorator.getForceBlock() == null)
return;
if (!underwater) {
if (!canGoOn(bd, bdx) && (!decorator.isForcePlace() && decorator.getForceBlock() == null)) {
return;
@@ -117,12 +111,6 @@ public class IrisSurfaceDecorator extends IrisEngineDecorator {
return;
}
for (int i = 1; i < stack; i++) {
var block = data.get(x, height + i + 1, z);
if ((block.isOccluding()) && (!decorator.isForcePlace() && decorator.getForceBlock() == null))
return;
}
for (int i = 0; i < stack; i++) {
int h = height + i;
double threshold = ((double) i) / (stack - 1);

View File

@@ -67,7 +67,6 @@ public class B {
CORNFLOWER,
SWEET_BERRY_BUSH,
CRIMSON_ROOTS,
SUNFLOWER,
WARPED_ROOTS,
NETHER_SPROUTS,
ALLIUM,