mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-08-17 00:36:35 +00:00
ignore datapack structures in mantle radius calc
This commit is contained in:
parent
0012c3e0f2
commit
5a5a01a7c7
@ -1,43 +0,0 @@
|
|||||||
/*
|
|
||||||
* Iris is a World Generator for Minecraft Bukkit Servers
|
|
||||||
* Copyright (c) 2022 Arcane Arts (Volmit Software)
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package com.volmit.iris.engine.object;
|
|
||||||
|
|
||||||
import com.volmit.iris.engine.object.annotations.*;
|
|
||||||
import lombok.AllArgsConstructor;
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
import lombok.experimental.Accessors;
|
|
||||||
|
|
||||||
@Snippet("jigsaw-placer")
|
|
||||||
@Accessors(chain = true)
|
|
||||||
@NoArgsConstructor
|
|
||||||
@AllArgsConstructor
|
|
||||||
@Desc("Represents a jigsaw placement")
|
|
||||||
@Data
|
|
||||||
public class IrisJigsawPlacement {
|
|
||||||
@RegistryListResource(IrisJigsawStructure.class)
|
|
||||||
@Required
|
|
||||||
@Desc("The jigsaw structure to use")
|
|
||||||
private String structure = "";
|
|
||||||
|
|
||||||
@Required
|
|
||||||
@MinNumber(1)
|
|
||||||
@Desc("The rarity for this jigsaw structure to place on a per chunk basis")
|
|
||||||
private int rarity = 29;
|
|
||||||
}
|
|
@ -123,6 +123,10 @@ public class IrisJigsawStructure extends IrisRegistrant {
|
|||||||
|
|
||||||
public int getMaxDimension() {
|
public int getMaxDimension() {
|
||||||
return maxDimension.aquire(() -> {
|
return maxDimension.aquire(() -> {
|
||||||
|
if (datapackStructures.isNotEmpty()) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (useMaxPieceSizeForParallaxRadius) {
|
if (useMaxPieceSizeForParallaxRadius) {
|
||||||
int max = 0;
|
int max = 0;
|
||||||
KList<String> pools = new KList<>();
|
KList<String> pools = new KList<>();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user