Skip to content

Commit

Permalink
Fixed a missing method when creating islands in spigot versions (#1370)
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerBenGera committed Sep 25, 2022
1 parent 7460391 commit 1727667
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Expand Up @@ -115,7 +115,7 @@ public void setBlock(Location location, int combinedId, @Nullable CompoundTag st

ChunkPos chunkPos = new ChunkPos(blockPos);

if (blockState.getEmittedLight() > 0)
if (blockState.getLightEmission() > 0)
lights.add(blockPos);

if (blockEntityData != null)
Expand Down
Expand Up @@ -110,7 +110,7 @@ public void setBlock(Location location, int combinedId, @Nullable CompoundTag st

ChunkPos chunkPos = new ChunkPos(blockPos);

if (blockState.getEmittedLight() > 0)
if (blockState.getLightEmission() > 0)
lights.add(blockPos);

if (blockEntityData != null)
Expand Down
Expand Up @@ -111,7 +111,7 @@ public void setBlock(Location location, int combinedId, @Nullable CompoundTag st

ChunkPos chunkPos = new ChunkPos(blockPos);

if (blockState.getEmittedLight() > 0)
if (blockState.getLightEmission() > 0)
lights.add(blockPos);

if (blockEntityData != null)
Expand Down
Expand Up @@ -111,7 +111,7 @@ public void setBlock(Location location, int combinedId, @Nullable CompoundTag st

ChunkPos chunkPos = new ChunkPos(blockPos);

if (blockState.getEmittedLight() > 0)
if (blockState.getLightEmission() > 0)
lights.add(blockPos);

if (blockEntityData != null)
Expand Down
Expand Up @@ -111,7 +111,7 @@ public void setBlock(Location location, int combinedId, @Nullable CompoundTag st

ChunkPos chunkPos = new ChunkPos(blockPos);

if (blockState.getEmittedLight() > 0)
if (blockState.getLightEmission() > 0)
lights.add(blockPos);

if (blockEntityData != null)
Expand Down
Expand Up @@ -111,7 +111,7 @@ public void setBlock(Location location, int combinedId, @Nullable CompoundTag st

ChunkPos chunkPos = new ChunkPos(blockPos);

if (blockState.getEmittedLight() > 0)
if (blockState.getLightEmission() > 0)
lights.add(blockPos);

if (blockEntityData != null)
Expand Down

0 comments on commit 1727667

Please sign in to comment.