fix(Bouncer/SendTileRectHandler): two typos which causes incorrect validating range
This commit is contained in:
parent
29477ab305
commit
988042e6c1
1 changed files with 2 additions and 2 deletions
|
|
@ -269,7 +269,7 @@ namespace TShockAPI.Handlers
|
||||||
|
|
||||||
private MatchResult MatchPlacement(TSPlayer player, TileRect rect)
|
private MatchResult MatchPlacement(TSPlayer player, TileRect rect)
|
||||||
{
|
{
|
||||||
for (int x = rect.X; x < rect.Y + rect.Width; x++)
|
for (int x = rect.X; x < rect.X + rect.Width; x++)
|
||||||
{
|
{
|
||||||
for (int y = rect.Y; y < rect.Y + rect.Height; y++)
|
for (int y = rect.Y; y < rect.Y + rect.Height; y++)
|
||||||
{
|
{
|
||||||
|
|
@ -303,7 +303,7 @@ namespace TShockAPI.Handlers
|
||||||
|
|
||||||
private MatchResult MatchStateChange(TSPlayer player, TileRect rect)
|
private MatchResult MatchStateChange(TSPlayer player, TileRect rect)
|
||||||
{
|
{
|
||||||
for (int x = rect.X; x < rect.Y + rect.Width; x++)
|
for (int x = rect.X; x < rect.X + rect.Width; x++)
|
||||||
{
|
{
|
||||||
for (int y = rect.Y; y < rect.Y + rect.Height; y++)
|
for (int y = rect.Y; y < rect.Y + rect.Height; y++)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue