Commit graph

92 commits

Author SHA1 Message Date
Cai
9eb49b0447
sync 2026-01-28 14:13:30 +08:00
LaoSparrow
596d7873b7 fix(SendTileRectHandler): unable to place LogicSensors 2025-03-25 15:27:43 +08:00
LaoSparrow
988042e6c1 fix(Bouncer/SendTileRectHandler): two typos which causes incorrect validating range 2025-03-17 22:12:54 +08:00
LaoSparrow
28aa3aea48 fix(Bouncer/SendTileRectHandler): tile rect changes not synced between clients && unable to place HatRack 2025-03-01 01:42:18 +08:00
LaoSparrow
1e23785a04 fix(Bouncer/SendTileRectHandler): MatchRemoval incorrect check range 2025-02-28 23:01:40 +08:00
punchready
149ca8a70c
Remove duplicate conversion spread matching 2023-06-07 03:05:10 +02:00
punchready
07bf66f072
Fix MatchPlacement allowing auto breakable tiles 2023-06-06 13:25:03 +02:00
punchready
0dd15277e4 Remove old STR handler 2023-05-09 12:41:54 +02:00
punchready
b57eb91230 Rewrite conversion spread handling to be much more accurate 2023-04-05 06:44:21 +02:00
punchready
c309990f94 Fix LunarMonolith toggling 2023-04-05 06:43:47 +02:00
punchready
d0409db5fb Never send back too large tile rects in handling 2023-04-04 06:16:44 +02:00
punchready
26482da23f Remove frame ignoring from tile rect placement operations 2023-04-04 06:02:55 +02:00
punchready
3302b4653e Update STR checks to be even more strict 2023-04-04 05:51:53 +02:00
punchready
b714ab18a5 Completely rewrite STR handling 2023-04-04 05:08:17 +02:00
Chris
ec72f4957b
Merge branch 'general-devel' into patch-2 2023-03-25 16:45:45 +10:30
punchready
5acc3afcb6 Update STR handling to reject for-sure invalid framing values 2023-03-24 21:39:24 +01:00
punchready
9a0269fb83
Update definitions for Flower Boots to allow Ash Plants 2023-02-28 22:05:25 +01:00
SGKoishi
656a6a49be
Exclude unused fields, allow tileMoss, SandSpray and SnowSpray 2022-12-10 13:36:13 -08:00
SGKoishi
d2037a62e5
Allow more tile and wall conversion 2022-11-27 21:14:13 -08:00
Lucas Nicodemus
a9aa988547
Merge remote-tracking branch 'sgk/patch-morei18n' into general-devel 2022-11-09 23:08:34 -08:00
SGKoishi
863d51ad27
Add missing string 2022-11-04 20:46:53 -07:00
SGKoishi
01e289e6ac
Fix #2800 2022-11-04 20:01:24 -07:00
Janet Blackquill
f63b26ac76 Some i18nifiying 2022-10-21 16:12:04 -04:00
punchready
25500bcccc
Use ad hoc checks for world boundary instead 2022-10-19 05:26:07 +02:00
punchready
4e542d6ef6
Skip tile rect changes close to the world edge 2022-10-19 05:20:18 +02:00
punchready
e53b723bd8
Fix grass mowing keeping hanging vines intact
Creating a long row of grass with vines below and then mowing it without breaking the vines below could cause a tile framing stack overflow due to all vines being cleared at once if one of them is being broken on the server or if the client simply loads the corresponding section.
Warning: this does not fix eventual existing worlds that are already in such a state.
2022-10-19 04:43:27 +02:00
Luke
a7cd6b6c9c Update ITile with new NetTile data 2022-10-12 16:51:31 +10:00
Luke
aa0bd7deb2 Merge branch 'general-devel' into otapi3 2022-09-06 22:23:34 +10:00
punchready
9358f11e51 Improve comments 2022-08-14 01:22:22 +02:00
punchready
cf9240d56d Support grass mowing 2022-07-27 11:35:21 +02:00
punchready
8b4dc3a1a4 Fix flower boots check, clean up code 2022-07-27 06:23:34 +02:00
punchready
681c6de1f7 add strict STR size checking 2022-07-26 08:24:46 +02:00
punchready
abaf414523 Remove tiles which are no longer sent in this packet 2022-07-26 00:01:25 +02:00
punchready
3383c630e3 Strictly filter tile types in send tile rect handling 2022-07-25 11:29:25 +02:00
Luke
8edd0393e5 Initial OTAPI3 port
TODO: sqlite
2021-11-23 20:49:41 +10:00
Killia0
9b249d72a8
Merge branch 'general-devel' into upstream-general-devel 2021-07-24 19:48:54 -04:00
Killia0
154bee58f1 Typo fixes on comments/strings
My first PR contribution to TShock is spellcheck huh, frankly I don't know why but hey I could spare the time for this and caught some stuff.
2021-07-16 14:53:37 -04:00
Stealownz
a26ad7dce0 Fix SendTileRectHandler not sending tile rect updates to everyone else
Fixes #2386
2021-07-04 17:20:57 +08:00
James Puleo
98c1587e44
Print proper expected player ID when handling
spoofed LandGolfBallInCup.

(edited manually on GitHub, should be okay though)
2021-06-14 03:00:35 -04:00
Lucas Nicodemus
046d52ad2e Move emoji player index check into IllegalPerSe
This is the first commit in a pattern that I'd like to follow. The
concept is that we specifically create handlers for things that are
"illegal per se." That is, there are no possible situations (in the
current protocol) where a packet of this type is received from a client.
In this case, I moved the emoji handler out of the Handler just for
emoji, since it seemed like an obvious case.

The rule of thumb is simple: if something is illegal per se, there
should be no possible way in the vanilla client to achieve this result.
If a player sends this combination of packets they *must* be hacking.
Not that there is a 99.9% chance they're hacking, but that there is a
100% unambiguous chance that they're hacking.

Something is illegal per se if it can only be created by a hacked
client. If there's a crashing bug that a normal player can do with a
complex series of vanilla events, that is not illegal per se.

The goal of this namespace and class of handlers is to handle exactly
one type of protocol violation, and remove the packet accordingly. If it
is ever reported that the packet can be sent from a vanilla client, the
check must be removed as it is no longer a per se violation of the
protocol.
2021-05-27 23:59:43 -07:00
quake1337
b1820c1516 Fix spaces lol 2021-05-21 13:54:40 +02:00
quake1337
817dfe26fc Address feedback from @hakusaro about style & documentation 2021-05-21 13:13:06 +02:00
quake1337
658c714ac5 Remove old UpdateServerTileState call, as the new one supersedes it 2021-05-21 12:13:06 +02:00
quake1337
c6dad11a1c Initial patch for advisory-1.
- Remove unused fields from NetTile
- Apply data from packets selectively based on approving context.
2021-05-21 09:53:33 +02:00
Chris
9423febd0a Refactor for new configuration 2020-12-03 17:43:10 +10:30
Chris
fe5a7ec2e4 Disable STR debugging 2020-11-15 11:06:12 +10:30
Chris
db10bf22e7 Refectoring continued - rename STS Handler to STR Handler 2020-11-13 18:50:54 +10:30
Chris
ca38d64632 The great refactoring! Squares to Rectangles 2020-11-13 17:46:00 +10:30
Patrikkk
530bc95123 RequestTileEntityInteractionHandler - Use object size for building perm check.
This commit will modify the RequestTileEntityInteractionHandler to use HasBuildPermissionForTileObject when checking for building permissions for Hat Rack and Display Doll to give an accurate response wether or not any part of the object has an overlapping protected region.
2020-06-27 10:22:03 +02:00
Patrikkk
d4e4692d8b Merge branch 'general-devel' into addtileentityinteraction 2020-06-25 13:41:14 +02:00