TShock/TShockAPI
Patrikk d77f363157 Fix #1287 | Quickstack to nearby chests issue
CheckRangePermission accepts coordinate which is divided by 16.
The Position variable which is passed in ForceItemIntoChestEventArgs is
multiplied by 16.
(To be more exact. `new Vector2((float)(Main.chest[i].x * 16 + 16),
(float)(Main.chest[i].y * 16 + 16))`)
The + 16 is there to get the middle of the player so it can make an
accurate check when checking distance between chest and player.
So I'm not really sure if the Position arg should be even passed in the
eventarg.

Anyway, CheckRangePermission always returned true because of the above,
and handled the event, so players could never quickstack into nearby,
unless they had RangeChecks off.
"True if the player should not be able to place the tile." (In our case,
stack items into chest)

Why doesn't CheckRangePermission contain a check on an actual range
permission of the player's group? So groups with the permission could
bypass the check.
Just wondering if there is any legit reason for that.
2016-09-25 02:07:15 +02:00
..
DB Remove redundant region checks 2016-08-02 19:22:47 +02:00
Extensions Show proper error at db connect fail 2016-06-25 13:31:23 +02:00
Hooks Pass down the permission being checked to the EventArgs (thanks @white) 2016-01-11 22:34:22 +00:00
Net Fix WorldInfo packet, window title now correctly displays the IP Address of the Network Interface the server is being hosted on. 2015-07-04 22:06:27 +01:00
Properties Version 4.3.18 2016-09-23 18:52:00 +09:30
Rest Added the Registered property to REST's players/read endpoints 2016-08-30 09:16:01 +02:00
ServerSideCharacters Set bool to false for SSC config enabled. 2015-03-17 13:19:02 -04:00
app.config Updated project to use NuGet where possible 2016-05-25 22:43:45 +01:00
BackupManager.cs Removed ThreadPool threads in favour of plain threads. 2016-05-10 23:46:44 +10:00
Commands.cs Add a sandstorm command 2016-09-22 19:13:50 +09:30
ConfigFile.cs Add protection of gem locks in region 2016-06-21 22:34:15 +08:00
FileTools.cs Extend NetItem 2015-05-04 22:11:10 -04:00
GeoIPCountry.cs Revert "Use Sublime Text's "Convert all open views to tabs" option" 2015-02-21 23:00:30 -07:00
GetDataHandlers.cs Merge pull request #1271 from ProfessorXZ/itemdrop-fix 2016-09-19 13:33:04 +01:00
Group.cs Add PlayerPermission hook, replace p.Group.HasPermission by p.HasPermission everywhere possible. 2016-01-11 14:37:02 +00:00
HandlerList.cs Tick version and update copyright 2015-01-28 15:29:13 -05:00
ILog.cs Docs: TraceLevel vs LogLevel in ILog.cs 2015-04-12 22:17:06 -06:00
IPackable.cs Tick version and update copyright 2015-01-28 15:29:13 -05:00
NetItem.cs Added backwards compatibility for SSC 2015-07-10 16:58:32 +09:30
packages.config Updated project to use NuGet where possible 2016-05-25 22:43:45 +01:00
PacketBufferer.cs Deprecated PacketBufferer as its function is now fulfilled by SendQ 2015-11-23 11:50:24 +10:30
PaginationTools.cs Tick version and update copyright 2015-01-28 15:29:13 -05:00
Permissions.cs Add a sandstorm command 2016-09-22 19:13:50 +09:30
PlayerData.cs Add namespace declarations to PlayerData.cs and TSServerPlayer.cs 2016-01-18 15:30:07 +00:00
Resources.Designer.cs Now targets NET 4.5, so the solution actually compiles. 2015-05-27 18:29:29 +09:30
Resources.resx Remove 2 year old config files... 2013-10-01 20:55:19 -04:00
SaveManager.cs Remove obsolete cloud save parameter 2015-07-17 13:49:20 +09:30
SqlLog.cs Remove the pesky '/' that got in there somehow 2015-04-09 15:58:10 +09:30
StatTracker.cs Removed ThreadPool threads in favour of plain threads. 2016-05-10 23:46:44 +10:00
TextLog.cs DEBUG preprocessor conditional inside method 2015-04-09 15:56:51 +09:30
TShock.cs Fix #1287 | Quickstack to nearby chests issue 2016-09-25 02:07:15 +02:00
TShockAPI.csproj Updated project to use NuGet where possible 2016-05-25 22:43:45 +01:00
TShockAPI.licenseheader Tick version and update copyright 2015-01-28 15:29:13 -05:00
TSPlayer.cs SyncExtraValue validation. Fixes #1024 2016-08-10 11:25:03 +02:00
TSServerPlayer.cs Fixes #1252 and #1160, remove the optional parameter from TSPlayer.SendMessage() 2016-07-31 22:33:53 +02:00
UpdateManager.cs Removed ThreadPool threads in favour of plain threads. 2016-05-10 23:46:44 +10:00
Utils.cs Handle the MassWireOperation packet. Fixes #1190 2016-05-28 19:16:52 +01:00