Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit 2afae3a

Browse files
committed
Added Ability To Grab Chunk From world in Flocation
1 parent fb8837b commit 2afae3a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/com/massivecraft/factions/FLocation.java

+4
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ public static int regionToChunk(int regionVal) {
9999
return regionVal << 5; // "<< 5" == "* 32"
100100
}
101101

102+
public Chunk getChunk(){
103+
return Bukkit.getWorld(worldName).getChunkAt(x, z);
104+
}
105+
102106
public static HashSet<FLocation> getArea(FLocation from, FLocation to) {
103107
HashSet<FLocation> ret = new HashSet<>();
104108

0 commit comments

Comments
 (0)