Commit graph

2782 commits

Author SHA1 Message Date
Lucas Nicodemus
bcf8cb644f API Version Tick: 1.25
Fixes compatibility with new API revision
2016-10-03 21:40:13 -06:00
Lucas Nicodemus
5c1d5ae586 Use WorldPosition instead of ChestPosition
Fixes build with 90d732b840 (I'm 99% sure WorldPosition is what we want to use but could be wrong)
2016-10-03 21:05:39 -06:00
ProfessorXZ
9948239cbf Fixed MagicalIceBlock checks 2016-09-30 20:43:13 +02:00
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
White
0a8a6a2df2 Version 4.3.18 2016-09-23 18:52:00 +09:30
White
36343dd8e7 Add a sandstorm command 2016-09-22 19:13:50 +09:30
Rodrigo
db11897ed5 Merge pull request #1271 from ProfessorXZ/itemdrop-fix
Fixed item duplication issues
2016-09-19 13:33:04 +01:00
Rodrigo
d48300fe31 Merge pull request #1283 from ProfessorXZ/wind-fix
Fixed UI issues caused by setting wind speed to high values
2016-09-19 13:31:42 +01:00
ProfessorXZ
9974441868 Added an extra IceRod check to HandleTile 2016-09-12 22:20:06 +02:00
ProfessorXZ
7376ad8b0e Fixed UI issues caused by setting wind speed to high values 2016-09-10 23:35:57 +02:00
ProfessorXZ
775c724b44 Fixed IceRod not placing ice blocks 2016-09-10 22:58:32 +02:00
ProfessorXZ
65c061383e Fixed corrupt packets caused by invalid tile IDs 2016-09-03 14:17:28 +02:00
ProfessorXZ
1316c71a4c UpdateItemDrop packet now points to HandleItemDrop instead 2016-09-03 14:15:26 +02:00
ProfessorXZ
dd50d41f2e Fix item duplication caused by range checks & netIDs. Fixes #1162 2016-09-03 14:15:26 +02:00
ProfessorXZ
f2cc3ce89f Remove unnecessary code from HandleTile() 2016-09-03 14:08:09 +02:00
ProfessorXZ
c305b36168 Fix explosives range checks 2016-09-03 14:08:08 +02:00
ProfessorXZ
30fcf83fa1 Clients are no longer able to bypass tile checks 2016-09-03 14:06:27 +02:00
ProfessorXZ
4d98dd4d24 Explosives are no longer blocked by range checks 2016-09-03 14:06:26 +02:00
Rodrigo
60b7e7d574 Merge pull request #1274 from Patrikkk/fix-junctionbox
Fix Junction Box permission issue
2016-09-02 21:54:10 +01:00
ProfessorXZ
05a4e025f7 Added the Registered property to REST's players/read endpoints 2016-08-30 09:16:01 +02:00
Patrikk
d326527d75 Fix Junction Box permission issue
Users without `allowclientsideworldedit` permission couldn't hammer and
change direction of Junction Box.
Code tested and functional.
(idk if I did it right tho lol)
2016-08-20 21:06:27 +02:00
ProfessorXZ
6c0f3ec15d Players are no longer able to place liquids using packet 82. Fixes #1260 2016-08-12 12:28:41 +02:00
ProfessorXZ
e0f17b82ef SyncExtraValue validation. Fixes #1024 2016-08-10 11:25:03 +02:00
ProfessorXZ
a65eb1667d The DCU now breaks tiles properly. Fixes #1155 2016-08-09 13:39:51 +02:00
ProfessorXZ
64f177e68f Fix rope placement range checks. Fixes #1236 2016-08-06 22:54:58 +02:00
ProfessorXZ
37d9e93e6c Remove redundant region checks 2016-08-02 19:22:47 +02:00
ProfessorXZ
0919641b7f Update ApiVersion 2016-08-02 18:44:19 +02:00
ProfessorXZ
e9d504afd4 Add ItemForceIntoChest hook. Fixes #1250 2016-08-02 18:41:28 +02:00
ProfessorXZ
952da9609a Fixes #1197 2016-08-01 22:39:01 +02:00
ProfessorXZ
ee6a98eb4e Fixes #1255 2016-08-01 09:35:37 +02:00
ProfessorXZ
2f57336fe8 Fixes #1252 and #1160, remove the optional parameter from TSPlayer.SendMessage() 2016-07-31 22:33:53 +02:00
ProfessorXZ
d0d0fae5ca Add an optional parameters to SendMessage(), add more XML comments to TSPlayer 2016-07-29 14:11:19 +02:00
ProfessorXZ
a02bc1012d Increase chat length 2016-07-29 11:28:58 +02:00
ProfessorXZ
d5c7dab03d Use packet 107 for sending chat messages 2016-07-29 10:21:24 +02:00
White
2045ff511c Fixed SetDungeon permission. Closes #1263 2016-07-29 15:59:54 +09:30
ProfessorXZ
809f8b7b3a Fixes #1251 2016-07-28 22:41:37 +02:00
ProfessorXZ
afd44480ab Fixes #1261 2016-07-28 21:09:15 +02:00
ProfessorXZ
6ffb485803 Fixes #1254 2016-07-28 20:30:34 +02:00
ProfessorXZ
e3df970c50 Fixes #1248 2016-07-28 10:14:17 +02:00
White
fb6d88819d Version tick 2016-07-28 11:36:42 +09:30
White
b2bd40b8f2 Resolved merge conflicts on sundial-permission 2016-07-28 11:20:37 +09:30
Patrikk
111a0a2456 Add usesundial permission | Fix #1247 2016-07-27 21:19:33 +02:00
Patrikk
2b2e01b1eb Add toggleparty permission | Fix #1256 2016-07-27 21:08:14 +02:00
White
7a8bbb1b99 Updated naming on CheckXMas 2016-07-23 10:11:26 +09:30
ProfessorXZ
f7a1b80337 Use TPlayer.autoActuate instead of IEnumerable.Any() 2016-07-19 00:21:54 +02:00
ProfessorXZ
ffa64e4474 Fixes #1241 2016-07-19 00:02:52 +02:00
ProfessorXZ
23991600b6 Fixes The Presserator not placing actuators 2016-07-18 23:33:58 +02:00
Zt Wang
8a518107a0 Fix bug where players cannot place sensors 2016-07-15 14:59:56 +08:00
White
b9046da5f4 Fixes #1239 2016-07-12 13:06:35 +09:30
White
ad2f56e251 Added detail to the TSPlayer.HasPermission method comments 2016-07-06 22:06:15 +09:30