[SOLVED]Get chunk player is standing in

So when I try to get the chunk its always returns no value present. Here’s the test code I currently have although I’ve tried a few variations with the same results.

	Location<World> location = player.getLocation();		
	Chunk chunk = player.getWorld().getChunk(location.getBlockX(), location.getBlockY(), location.getBlockZ()).get();

Nevermind, I found a similar post. My bad.

1 Like