File tree Expand file tree Collapse file tree
src/main/java/org/powernukkitx/staticworld/listener Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77 <groupId >org.powernukkitx.staticworld</groupId >
88 <artifactId >StaticWorld</artifactId >
9- <version >1.0.1 </version >
9+ <version >1.0.2 </version >
1010
1111 <properties >
1212 <maven .compiler.source>21</maven .compiler.source>
Original file line number Diff line number Diff line change 1212import cn .nukkit .level .Level ;
1313import io .netty .buffer .Unpooled ;
1414import io .netty .util .internal .EmptyArrays ;
15+ import org .cloudburstmc .protocol .bedrock .data .payload .common .DimensionType ;
1516import org .cloudburstmc .protocol .bedrock .packet .LevelChunkPacket ;
1617import org .powernukkitx .staticworld .utils .StaticEntry ;
1718
@@ -71,6 +72,7 @@ public void onPlayerTeleport(PlayerTeleportEvent event) {
7172 LevelChunkPacket packet = new LevelChunkPacket ();
7273 packet .setChunkX (Level .getHashX (chunkHash ));
7374 packet .setChunkZ (Level .getHashZ (chunkHash ));
75+ packet .setDimension (DimensionType .from (from .getDimension ()));
7476 packet .setSerializedChunkData (Unpooled .buffer ());
7577 player .sendPacketImmediately (packet );
7678 }
You can’t perform that action at this time.
0 commit comments