Skip to content

Commit 6a5301e

Browse files
committed
Fixed compilation error with cubePos()
1 parent 78d4ab0 commit 6a5301e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/io/github/opencubicchunks/cubicchunks/mixin/core/common/server/network/MixinPlayerChunkSender.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import io.github.opencubicchunks.cubicchunks.CanBeCubic;
99
import io.github.opencubicchunks.cubicchunks.mixin.dasmsets.ChunkToCubeSet;
1010
import io.github.opencubicchunks.cubicchunks.network.CCClientboundLevelCubeWithLightPacket;
11+
import io.github.opencubicchunks.cubicchunks.world.entity.EntityCubePosGetter;
1112
import io.github.opencubicchunks.cubicchunks.world.level.cube.LevelCube;
1213
import it.unimi.dsi.fastutil.longs.LongSet;
1314
import net.minecraft.network.protocol.game.ClientboundChunkBatchFinishedPacket;
@@ -54,7 +55,7 @@ private void cc_sendNextChunks(ServerPlayer player, CallbackInfo ci) {
5455
if (!this.pendingChunks.isEmpty()) {
5556
ServerLevel serverlevel = player.serverLevel();
5657
ChunkMap chunkmap = serverlevel.getChunkSource().chunkMap;
57-
List<LevelCube> list = this.cc_collectChunksToSend(chunkmap, player.cubePos());
58+
List<LevelCube> list = this.cc_collectChunksToSend(chunkmap, ((EntityCubePosGetter)player).cc_cubePosition());
5859
if (!list.isEmpty()) {
5960
ServerGamePacketListenerImpl servergamepacketlistenerimpl = player.connection;
6061
++this.unacknowledgedBatches;

0 commit comments

Comments
 (0)