This commit is contained in:
PC-20230316NUNE\Administrator
2024-08-19 20:20:41 +08:00
parent a1f2730025
commit 17cb342387
21 changed files with 457 additions and 459 deletions

View File

@@ -31,7 +31,7 @@ namespace JNGame.Sync.State.Tile
{
if (xTuple.X >= 0 && xTuple.Y >= 0)
{
return xTuple.Y <= Tiles.Length && xTuple.X <= Tiles[0].Length;
return xTuple.Y < Tiles.Length && xTuple.X < Tiles[0].Length;
}
return false;
}

View File

@@ -3,6 +3,7 @@ using System.Linq;
using System.Net;
using System.Threading.Tasks;
using AppGame.Systems;
using DotRecast.Core.Collections;
using Game.Input;
using Game.JNGFrame.View;
using Game.JNGState.Logic.Data;
@@ -120,7 +121,7 @@ namespace AppGame.Sync
List<int> ids = GetTileGridIndex(PlayerPos.Value);
ids.ForEach(AddTileShow);
TileShow.ForEach(id =>
TileShow.ToArray().ForEach(id =>
{
if (!(ids.Contains(id)))
{