mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-07 03:00:29 +01:00
Temporary fix on the ChunkSnapshot for 1.12 and lower until I recode it
This commit is contained in:
parent
847e23bf0f
commit
cf1567a1db
@ -147,4 +147,9 @@
|
|||||||
<attribute name="gradle_used_by_scope" value="main,test"/>
|
<attribute name="gradle_used_by_scope" value="main,test"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
</classpathentry>
|
</classpathentry>
|
||||||
|
<classpathentry kind="lib" path="C:/Users/Sean Grover/OneDrive/Projects/workspace/Skyblock/libraries/Skyblock-LegacyChunkSnapshot.jar">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="gradle_used_by_scope" value="main,test"/>
|
||||||
|
</attributes>
|
||||||
|
</classpathentry>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
@ -88,6 +88,8 @@ dependencies {
|
|||||||
// Songoda Updater
|
// Songoda Updater
|
||||||
shade (group: 'com.songoda', name: 'songodaupdater', version: '1')
|
shade (group: 'com.songoda', name: 'songodaupdater', version: '1')
|
||||||
|
|
||||||
|
shade fileTree(dir: 'libraries', include: '*.jar')
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
processResources {
|
processResources {
|
||||||
|
@ -1,23 +0,0 @@
|
|||||||
package com.songoda.skyblock.levelling;
|
|
||||||
|
|
||||||
import org.bukkit.Material;
|
|
||||||
|
|
||||||
public class LegacyChunkSnapshotData {
|
|
||||||
|
|
||||||
private Material material;
|
|
||||||
private int data;
|
|
||||||
|
|
||||||
public LegacyChunkSnapshotData(Material material, int data) {
|
|
||||||
this.material = material;
|
|
||||||
this.data = data;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Material getMaterial() {
|
|
||||||
return this.material;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getData() {
|
|
||||||
return this.data;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,13 +0,0 @@
|
|||||||
package com.songoda.skyblock.levelling;
|
|
||||||
|
|
||||||
import org.bukkit.ChunkSnapshot;
|
|
||||||
|
|
||||||
public class LegacyChunkSnapshotFetcher {
|
|
||||||
|
|
||||||
// Uses a 1.12.2 jar in a separate project to avoid needing to use reflection during level scanning, much faster.
|
|
||||||
@SuppressWarnings("deprecation")
|
|
||||||
public static LegacyChunkSnapshotData fetch(ChunkSnapshot snapshot, int x, int y, int z) {
|
|
||||||
return new LegacyChunkSnapshotData(snapshot.getBlockType(x, y, z), snapshot.getData(x, y, z));
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user