|
25 | 25 | package de.bluecolored.bluemap.sponge; |
26 | 26 |
|
27 | 27 | import com.flowpowered.math.vector.Vector3d; |
| 28 | +import de.bluecolored.bluemap.common.plugin.text.Text; |
28 | 29 | import de.bluecolored.bluemap.common.serverinterface.Gamemode; |
29 | 30 | import de.bluecolored.bluemap.common.serverinterface.Player; |
30 | | -import de.bluecolored.bluemap.common.plugin.text.Text; |
31 | 31 | import org.spongepowered.api.Sponge; |
32 | 32 | import org.spongepowered.api.data.Keys; |
33 | 33 | import org.spongepowered.api.effect.VanishState; |
|
36 | 36 | import org.spongepowered.api.entity.living.player.gamemode.GameMode; |
37 | 37 | import org.spongepowered.api.entity.living.player.gamemode.GameModes; |
38 | 38 | import org.spongepowered.api.entity.living.player.server.ServerPlayer; |
39 | | -import org.spongepowered.api.world.LightTypes; |
40 | 39 |
|
41 | 40 | import java.io.IOException; |
42 | 41 | import java.util.*; |
@@ -159,8 +158,9 @@ public void update() { |
159 | 158 | this.rotation = SpongePlugin.fromSpongePoweredVector(player.rotation()); |
160 | 159 | this.sneaking = player.get(Keys.IS_SNEAKING).orElse(false); |
161 | 160 |
|
162 | | - this.skyLight = player.world().light(LightTypes.SKY, player.blockPosition()); |
163 | | - this.blockLight = player.world().light(LightTypes.BLOCK, player.blockPosition()); |
| 161 | + // not implemented in sponge |
| 162 | + this.skyLight = 15; //player.world().light(LightTypes.SKY, player.blockPosition()); |
| 163 | + this.blockLight = 0; //player.world().light(LightTypes.BLOCK, player.blockPosition()); |
164 | 164 |
|
165 | 165 | try { |
166 | 166 | var world = SpongePlugin.getInstance().getWorld(player.world()); |
|
0 commit comments