Skip to content

Commit

Permalink
Working towards 1.16.1-v1: add support for 1.16 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bergerkiller committed Jul 6, 2020
1 parent b288caa commit 6eda8d2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.bergerkiller.bukkit</groupId>
<artifactId>LightCleaner</artifactId>
<version>1.15.2-v2</version>
<version>1.16.1-v1-SNAPSHOT</version>
<packaging>jar</packaging>

<name>LightCleaner</name>
Expand All @@ -13,7 +13,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.serverversion>1.12-R0.1</project.serverversion>
<project.bkcversion>1.15.2-v2-SNAPSHOT</project.bkcversion>
<project.bkcversion>1.16.1-v1-SNAPSHOT</project.bkcversion>
</properties>

<repositories>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

import com.bergerkiller.bukkit.common.Common;
import com.bergerkiller.bukkit.common.PluginBase;
import com.bergerkiller.bukkit.common.config.FileConfiguration;
import com.bergerkiller.bukkit.common.permissions.NoPermissionException;
Expand All @@ -28,7 +29,7 @@ public static boolean isWorldSaveEnabled(World world) {

@Override
public int getMinimumLibVersion() {
return 11404; // has backwards support
return Common.VERSION;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.bergerkiller.bukkit.common.bases.IntVector2;
import com.bergerkiller.bukkit.common.chunk.ForcedChunk;
import com.bergerkiller.bukkit.common.utils.ChunkUtil;
import com.bergerkiller.bukkit.common.utils.WorldUtil;
import com.bergerkiller.bukkit.common.wrappers.ChunkSection;
import com.bergerkiller.bukkit.common.wrappers.HeightMap;
import com.bergerkiller.bukkit.lightcleaner.LightCleaner;
Expand Down Expand Up @@ -79,7 +80,7 @@ public void notifyAccessible(LightingChunk chunk) {

public void fill(Chunk chunk) {
// Fill using chunk sections
hasSkyLight = WorldHandle.fromBukkit(chunk.getWorld()).getWorldProvider().hasSkyLight();
hasSkyLight = WorldUtil.getDimensionType(chunk.getWorld()).hasSkyLight();
ChunkSection[] chunkSections = ChunkUtil.getSections(chunk);
for (int section = 0; section < SECTION_COUNT; section++) {
ChunkSection chunkSection = chunkSections[section];
Expand Down

0 comments on commit 6eda8d2

Please sign in to comment.