Fix dumb crap

This commit is contained in:
Player Name 2026-06-28 06:30:54 +02:00
parent a22fd8185f
commit 8a7aa2a1b9
2 changed files with 7 additions and 0 deletions

View file

@ -412,6 +412,7 @@ public class RegionChunk {
if (item != null && item.isActive() && item.getLocation() != null) {
if (!item.isPrivate() || item.droppedBy(player)) {
ConstructGroundItem.write(buffer, item);
updated = true;
}
}
}

View file

@ -1,4 +1,5 @@
package core.game.world.update
import core.game.node.entity.player.Player
import core.game.world.map.Location
import core.game.world.map.RegionChunk
@ -14,6 +15,11 @@ import java.util.*
*/
object MapChunkRenderer {
const val buildAreaDepth = 6
/**
* Sends the map chunk rendering packet.
* @param player The player.
*/
@JvmStatic
fun render(player: Player) {
val last = player.playerFlags.lastViewport