Skip to content
This repository was archived by the owner on Jan 9, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.classpath
.project
WorldGenerationControl.iml
.idea/*
.bin/*
classes/*
lib/*
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@
// Plugin *Does not* require craftbukkit, but lighting wont be available
// otherwise as Bukkit doesn't currently provide the right calls.
// (Our old method was a hack that relied on CraftBukkit quirks anyway)
import org.bukkit.craftbukkit.CraftChunk;
import org.bukkit.craftbukkit.v1_6_R3.CraftChunk;
// This is used by checkCWTickList to work around a CW bug
import org.bukkit.craftbukkit.CraftWorld;
import org.bukkit.craftbukkit.v1_6_R3.CraftWorld;

public class WorldGenerationControl extends JavaPlugin implements Runnable
{
Expand Down Expand Up @@ -582,8 +582,8 @@ public void fixLighting(boolean force)
// initLighting 'resets' the lighting for a chunk, doing fast lighting on everything and marking them all as needing full lighting
// Don't do it on chunks without their adjacents loaded, since the h() will then fail to fix them and we're actually breaking
// potentially good lighting.
net.minecraft.server.Chunk rawchunk = ((CraftChunk)this.chunk).getHandle();

net.minecraft.server.v1_6_R3.Chunk rawchunk = ((CraftChunk)this.chunk).getHandle();

// We skip the edge chunks - with overlap=2, they will be a non-edge chunk in at least one region,
// where we can also guarantee their peers are loaded for proper loading
Expand Down