mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-17 06:11:24 +00:00
Refractor
This commit is contained in:
@@ -52,7 +52,7 @@ fun Project.configureDistribution() {
|
|||||||
println("Packaging addon ${jar.archiveFileName.get()} to $dest. size: ${jar.archiveFile.get().asFile.length() / 1024}KB")
|
println("Packaging addon ${jar.archiveFileName.get()} to $dest. size: ${jar.archiveFile.get().asFile.length() / 1024}KB")
|
||||||
|
|
||||||
val boot = if (extra.has("bootstrap") && extra.get("bootstrap") as Boolean) "bootstrap/" else ""
|
val boot = if (extra.has("bootstrap") && extra.get("bootstrap") as Boolean) "bootstrap/" else ""
|
||||||
val addonPath = fs.getPath("/addons/$boot${jar.archiveFileName.get()}");
|
val addonPath = fs.getPath("/addons/$boot${jar.archiveFileName.get()}")
|
||||||
|
|
||||||
if (!Files.exists(addonPath)) {
|
if (!Files.exists(addonPath)) {
|
||||||
Files.createDirectories(addonPath.parent)
|
Files.createDirectories(addonPath.parent)
|
||||||
|
|||||||
+1
-1
@@ -24,7 +24,7 @@ import com.dfsek.terra.bukkit.world.BukkitAdapter;
|
|||||||
|
|
||||||
|
|
||||||
public class BukkitBlockState implements BlockState {
|
public class BukkitBlockState implements BlockState {
|
||||||
private org.bukkit.block.data.BlockData delegate;
|
private final org.bukkit.block.data.BlockData delegate;
|
||||||
|
|
||||||
protected BukkitBlockState(org.bukkit.block.data.BlockData delegate) {
|
protected BukkitBlockState(org.bukkit.block.data.BlockData delegate) {
|
||||||
this.delegate = delegate;
|
this.delegate = delegate;
|
||||||
|
|||||||
+1
-1
@@ -25,7 +25,7 @@ import com.dfsek.terra.bukkit.world.inventory.BukkitItemMeta;
|
|||||||
|
|
||||||
public class BukkitDamageable extends BukkitItemMeta implements Damageable {
|
public class BukkitDamageable extends BukkitItemMeta implements Damageable {
|
||||||
public BukkitDamageable(org.bukkit.inventory.meta.Damageable delegate) {
|
public BukkitDamageable(org.bukkit.inventory.meta.Damageable delegate) {
|
||||||
super((ItemMeta) delegate);
|
super(delegate);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
+1
-1
@@ -227,7 +227,7 @@ public class NMSChunkGeneratorDelegate extends ChunkGenerator {
|
|||||||
this.climateSampler());
|
this.climateSampler());
|
||||||
|
|
||||||
if(pair != null) {
|
if(pair != null) {
|
||||||
BlockPos blockposition = (BlockPos) pair.getFirst();
|
BlockPos blockposition = pair.getFirst();
|
||||||
|
|
||||||
k1 = SectionPos.blockToSectionCoord(blockposition.getX());
|
k1 = SectionPos.blockToSectionCoord(blockposition.getX());
|
||||||
l1 = SectionPos.blockToSectionCoord(blockposition.getZ());
|
l1 = SectionPos.blockToSectionCoord(blockposition.getZ());
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ dependencies {
|
|||||||
implementation("net.jafama", "jafama", Versions.Libraries.Internal.jafama)
|
implementation("net.jafama", "jafama", Versions.Libraries.Internal.jafama)
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<Jar>() {
|
tasks.withType<Jar> {
|
||||||
entryCompression = ZipEntryCompression.STORED
|
entryCompression = ZipEntryCompression.STORED
|
||||||
manifest {
|
manifest {
|
||||||
attributes(
|
attributes(
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ public final class AwfulForgeHacks {
|
|||||||
BLOCK,
|
BLOCK,
|
||||||
BIOME,
|
BIOME,
|
||||||
WORLD_TYPE,
|
WORLD_TYPE,
|
||||||
DONE;
|
DONE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user