Merge branch 'general-devel' of github.com:TShock/TShock into general-devel
This commit is contained in:
commit
340c0515ea
2 changed files with 8 additions and 7 deletions
|
|
@ -698,7 +698,8 @@ namespace TShockAPI
|
|||
{PacketTypes.PlayerAnimation, HandlePlayerAnimation},
|
||||
{PacketTypes.PlayerBuff, HandlePlayerBuffUpdate},
|
||||
{PacketTypes.PasswordSend, HandlePassword},
|
||||
{PacketTypes.ContinueConnecting2, HandleConnecting}
|
||||
{PacketTypes.ContinueConnecting2, HandleConnecting},
|
||||
{PacketTypes.ProjectileDestroy, HandleProjectileKill}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -1050,11 +1051,11 @@ namespace TShockAPI
|
|||
|
||||
var tile = Main.tile[realx, realy];
|
||||
var newtile = tiles[x, y];
|
||||
if (TShock.CheckTilePermission(args.Player, x, y))
|
||||
if (TShock.CheckTilePermission(args.Player, realx, realy))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (TShock.CheckRangePermission(args.Player, x, y))
|
||||
if (TShock.CheckRangePermission(args.Player, realx, realy))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -428,11 +428,11 @@ namespace TShockAPI
|
|||
|
||||
private object WorldMeteor(RestVerbs verbs, IParameterCollection parameters)
|
||||
{
|
||||
if (WorldGen.genRand == null)
|
||||
WorldGen.genRand = new Random();
|
||||
WorldGen.dropMeteor();
|
||||
var returnBlock = new Dictionary<string, string>();
|
||||
returnBlock.Add("status", "200");
|
||||
returnBlock.Add("response", "Meteor has been spawned.");
|
||||
return returnBlock;
|
||||
var returnBlock = new Dictionary<string, string> {{"status", "200"}, {"response", "Meteor has been spawned."}};
|
||||
return returnBlock;
|
||||
}
|
||||
|
||||
private object WorldBloodmoon(RestVerbs verbs, IParameterCollection parameters)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue