mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-05 20:36:42 +00:00
Removed LightingExtent and organized some classes.
This commit is contained in:
@ -22,7 +22,6 @@ package com.sk89q.worldedit.world;
|
||||
import com.boydti.fawe.beta.IChunkGet;
|
||||
import com.boydti.fawe.beta.implementation.packet.ChunkPacket;
|
||||
import com.boydti.fawe.beta.IChunkCache;
|
||||
import com.boydti.fawe.object.extent.LightingExtent;
|
||||
import com.sk89q.worldedit.EditSession;
|
||||
import com.sk89q.worldedit.MaxChangedBlocksException;
|
||||
import com.sk89q.worldedit.WorldEditException;
|
||||
@ -134,10 +133,6 @@ public interface World extends Extent, Keyed, IChunkCache<IChunkGet> {
|
||||
* @return the light level (0-15)
|
||||
*/
|
||||
default int getBlockLightLevel(BlockVector3 position) {
|
||||
if (this instanceof LightingExtent) {
|
||||
LightingExtent extent = (LightingExtent) this;
|
||||
return extent.getBlockLight(position.getX(), position.getY(), position.getZ());
|
||||
}
|
||||
return getBlock(position).getMaterial().getLightValue();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user