Commit Graph

1269 Commits

Author SHA1 Message Date
KennyTV
5ce1e850c8
Rewrite item nbt attributes 2020-07-02 15:57:52 +02:00
KennyTV
4f392ba361
Suffix snapshot version again
(Now accepted by ViaFabric)
2020-07-02 15:57:52 +02:00
KennyTV
61fb1c249c
Wrap exceptions in remappers to InformativeEx 2020-07-02 15:57:52 +02:00
KennyTV
dae83d0e36
Wrap exceptions in remappers to InformativeEx 2020-07-02 11:08:59 +02:00
KennyTV
67c5e78e7b
Cleanup declare recipe, trade list, and advancement packets 2020-07-02 00:18:33 +02:00
KennyTV
1ec2551fcc
Change version back to 3.0.2-SNAPSHOT
Spam is over, I promise
2020-07-01 20:42:07 +02:00
KennyTV
d4a299501a
Add piglin brute to entity types 2020-07-01 20:21:38 +02:00
KennyTV
3fbeb3e902
Actually fix hardcore flag 2020-07-01 20:07:20 +02:00
KennyTV
7f2023176f
Fix hardcore flag 2020-07-01 20:02:44 +02:00
KennyTV
3ddd289b49
20w27a
TODO: Yoink recipe rewriter from ViaBackwards
2020-07-01 19:44:11 +02:00
KennyTV
f16ff65933
Move handshake exceptions filter to exceptionCaught handling 2020-07-01 13:22:00 +02:00
KennyTV
96485c444e
Filter new blocks/items in tag rewriting
Fixes ViaVersion/ViaBackwards#219
2020-07-01 09:40:18 +02:00
KennyTV
b99b79f44a
Only print handshake errors when debug is enabled
The exceptions only now showed up with the new print handling, but 100% of the printed cases have just been invalid packets, which we can (and should) just ignore.
Fixes #1854
2020-07-01 09:11:46 +02:00
KennyTV
3ba2191829
Fix late Bungee connection cancelling 2020-06-30 13:51:06 +02:00
KennyTV
26de3fe573
Cancel lengthy plugin channels on Spigot
Fixes #1859
2020-06-30 09:35:37 +02:00
KennyTV
d59749fb03
Fix legacy nbt parsing 2020-06-29 18:06:23 +02:00
KennyTV
a0195c59cc
Handle lore in show_item in 1.13->1.14
Also print out nbt if reading/writing fails
2020-06-28 22:19:59 +02:00
KennyTV
26b90b6d71
Fix accidental casting
Might have forgotten to actually commit this, whoopsie
2020-06-28 20:44:45 +02:00
KennyTV
b203db3ce5
Minor formatting change 2020-06-28 12:35:42 +02:00
KennyTV
e386f7cf45
Fix 1.12->1.13 show_item handling
Fixes #1603
2020-06-28 12:28:35 +02:00
KennyTV
c1c542cc5a
Fix advancement reading 2020-06-28 11:59:19 +02:00
KennyTV
642d427783
Convert component score values
Fixes #1817
2020-06-27 23:41:46 +02:00
KennyTV
b2514a9e50
Map a few removed translation keys
Fixes #1818
2020-06-27 19:51:42 +02:00
Nassim
a942d3aad5
Merge pull request #1840 from KennyTV/component-reading
Directly read components as json, to only de-/serialize once
2020-06-27 17:42:25 +02:00
KennyTV
7a25645ed5
Rename some A's 2020-06-27 16:56:57 +02:00
Myles
3c23bd41dd
Merge pull request #1843 from creeper123123321/patch-3
Fix bossbar
2020-06-26 10:04:18 +01:00
Myles
e5ba76e006
Merge pull request #1833 from KennyTV/master
Only print InformativeException cases in codec handlers
2020-06-26 10:03:49 +01:00
creeper123123321
7a03feeccc
Fix bossbar 2020-06-26 05:57:02 -03:00
creeper123123321
790a9d0058 inactivate userconnection correctly when there's no translation 2020-06-25 13:49:19 -03:00
creeper123123321
7ff42400c0 javadc 2020-06-25 12:07:30 -03:00
creeper123123321
3df7f760a6 warn about duplicate uuids 2020-06-25 11:50:12 -03:00
KennyTV
3a48e54e52
Directly read components as json, to only de-/serialize once 2020-06-25 16:41:39 +02:00
creeper123123321
73eef1727a make isFrontEnd public 2020-06-25 11:41:38 -03:00
creeper123123321
1ab0cd07af Use return value from add/remove and add abstract isFrontEnd 2020-06-25 11:40:15 -03:00
creeper123123321
9df545483c Fix when client doesn't have id 2020-06-25 11:28:30 -03:00
creeper123123321
3f93bb051d Redirect UUID to UserConnection bossbars 2020-06-25 11:25:59 -03:00
creeper123123321
8bd982a412 fix number comparing 2020-06-25 11:00:43 -03:00
creeper123123321
7b200ad264 dont use uuids for bossbars, use userconnection 2020-06-25 10:50:34 -03:00
KennyTV
5d2a4e2ef3
Add sanity check to conduit nbt handling 2020-06-25 12:52:59 +02:00
KennyTV
d414106d5a
Only print InformativeException cases in codec handlers 2020-06-25 12:51:51 +02:00
KennyTV
6761489ebf
Also handle the block entity data packet for nbt
Fixes #1816
2020-06-25 11:18:07 +02:00
KennyTV
f91ddb2521
Hotfix RGB Bungee legacy insertions
Fixes #1838
We should at some point completely remove the Bungee chat lib and handle everything with plain json ourselves
2020-06-25 09:57:26 +02:00
Myles
3ee94415a9 Back to snapshot 2020-06-24 13:34:17 +01:00
Myles
1a7ce908b8 Release 2020-06-24 13:16:45 +01:00
KennyTV
d3fb7cd91b
1.16.1 2020-06-24 14:10:33 +02:00
KennyTV
8b61d168f7
Send remaining (empty) tags
Fixes #1830
2020-06-24 14:05:52 +02:00
KennyTV
5b807a9f17
Fix motd reading in some cases
Fixes #1826
2020-06-23 23:33:59 +02:00
KennyTV
f671a4fa5c
Work around player sample line breaks
Fixes #1819
2020-06-23 20:01:01 +02:00
KennyTV
0b1c210f77
Fix component read length
Fixes #1822, fixes #1696
2020-06-23 19:15:20 +02:00
KennyTV
9220c5ae40
Remap ocelots to cats in 1.13->1.14 again
Fixes #1815
2020-06-23 17:43:05 +02:00
KennyTV
f391cc6185
Send impact_projectiles enttiy tag 2020-06-23 17:30:37 +02:00
KennyTV
b0fe7d9c6d
Also add wooden_trapdoors item tag 2020-06-23 17:13:11 +02:00
KennyTV
3d39f0d304
Fix wooden_trapdoors tag checking 2020-06-23 16:31:00 +02:00
Myles
42029770a2 Back to snapshot 2020-06-23 14:40:22 +01:00
Myles
cf00b9ee7c 3.0.0 2020-06-23 14:07:27 +01:00
Myles
b0816b1ce6
Merge pull request #1812 from KennyTV/abstraction
Revert removal of concurrency hacks
2020-06-22 17:15:11 +01:00
KennyTV
67cce53b72
Revert removal of concurrency hacks
Apparently still causes issues with PS, we'll investigate this properly at a later date
2020-06-22 17:45:10 +02:00
Myles
0c097d7467
Merge pull request #1810 from KennyTV/abstraction
Fix 1.16 Bungee compat
2020-06-22 16:33:25 +01:00
KennyTV
70e142e4c4
Fix 1.16 Bungee compat
Moved the version hack outside of the BaseProtocol class into separate impls with properly checking the sent version
2020-06-22 17:02:25 +02:00
KennyTV
9f104866b2
Prepare for 1.16 2020-06-22 16:10:34 +02:00
KennyTV
7ec9eb08d9
Fix banner item color in 1.12->1.13
Fixes #1809
2020-06-22 10:20:00 +02:00
KennyTV
7595ca0c40
Avoid a bit of overhead in manual primitive type reading
Mostly interesting for proper object type reading (arrays, chunks, etc.) that manually call the type read/write methods + packet varint channel id
2020-06-18 19:38:47 +02:00
KennyTV
5a15d34d9e
1.16 rc1 2020-06-18 15:48:33 +02:00
KennyTV
cc500e4681
1.16 pre8 2020-06-17 18:03:22 +02:00
KennyTV
4c7cf56655
Fix future entity equip reading 2020-06-16 21:04:29 +02:00
KennyTV
9785878d87
1.16 pre7 2020-06-16 18:50:50 +02:00
KennyTV
6cd6c87127
1.16 pre6 2020-06-15 20:11:21 +02:00
KennyTV
b9889d2c45
1.16 pre5 2020-06-12 17:18:06 +02:00
KennyTV
7924dfeab2
Remove -1 tag workaround, fixed in pre4 2020-06-11 19:36:35 +02:00
KennyTV
989c0bf55f
1.16 pre4 2020-06-11 19:30:52 +02:00
KennyTV
e1b2702231
1.16 pre3 2020-06-10 19:36:05 +02:00
KennyTV
029f399a14
Rename ViaCodecException to CancelCodecException 2020-06-10 08:58:40 +02:00
KennyTV
7588609c56
Fix cancelexception printing 2020-06-09 21:29:19 +02:00
KennyTV
6513df10e7
Explicitly cast json loaded map in BlockIdData
Else json will start to cry sometimes
2020-06-09 20:38:50 +02:00
KennyTV
d14a74f29e
Change CancelException message 2020-06-09 20:05:35 +02:00
Myles
2f9c66eafb
Merge pull request #1505 from creeper123123321/nettyhandlerabstraction
Netty handler tidy
2020-06-09 17:10:06 +01:00
KennyTV
ad1707f0ee
Fixup docs 2020-06-09 17:57:14 +02:00
KennyTV
aa59ed112a
Fixup docs, remove ConcurrentList 2020-06-09 17:53:31 +02:00
Myles
7be8c9d8aa
Merge pull request #1799 from KennyTV/abstraction
Use FastUtil collections for frequently called code
2020-06-09 15:50:23 +01:00
KennyTV
f408a5d4c6
Add last load factors 2020-06-09 08:38:22 +02:00
KennyTV
5d8084986f
Put itemmappings into custom Int2IntBiMap 2020-06-08 23:54:24 +02:00
KennyTV
5bd1ef882e
Set load factor to 1 for deterministically sized collections 2020-06-08 23:13:47 +02:00
KennyTV
6167c3b526
Set default return values 2020-06-08 23:01:55 +02:00
KennyTV
8188ae09f5
Use proper FU classes, shade dumbed down version 2020-06-08 22:23:24 +02:00
KennyTV
9c81ba368f
Cancel block change packets for removed actions 2020-06-08 17:46:18 +02:00
KennyTV
39cb8fd554
Fix FU check 2020-06-08 15:58:10 +02:00
KennyTV
623cdaf881
Getter for original map in IntMap 2020-06-08 15:34:34 +02:00
KennyTV
1ad559212e
Create soft wrapper for FU Int2ObjectMap 2020-06-08 13:49:26 +02:00
KennyTV
30e10bb645
Create soft wrapper for FU IntSet and Int2IntMap 2020-06-08 12:27:34 +02:00
KennyTV
df495f8131
Remove accidental import 2020-06-07 16:29:15 +02:00
KennyTV
529da10615
Move ProtocolInfo into its own field 2020-06-07 12:19:36 +02:00
KennyTV
f2d6691af7
Minor javadoc changes 2020-06-07 11:32:49 +02:00
creeper123123321
a8a1e9448e
Netty handler tidy 2020-06-07 10:41:29 +02:00
KennyTV
5fca206b8d
Add method to get protocol instance by class 2020-06-07 10:16:40 +02:00
KennyTV
25652eab15
Print protocol and packet type when erroring 2020-06-06 16:16:38 +02:00
KennyTV
f117239184
Further safety checks for correct packets types 2020-06-06 15:54:51 +02:00
KennyTV
cc3dae127b
Use correct packet type when warning for missing mapping 2020-06-06 15:33:20 +02:00
KennyTV
baf1b851c4
1.8 packet enum, add a small number of nullable annotations 2020-06-06 10:55:35 +02:00
KennyTV
545ab2de79
Enforce correct packet types with generics, 1.9 packet constant 2020-06-06 09:45:43 +02:00
KennyTV
38f845bb7e
Consistency changes, 1.11->1.12 packet constants
Almost there! :>
2020-06-05 23:06:00 +02:00
KennyTV
9f80553749
Safety checks, packet type constants for 1.12->1.13 protocol 2020-06-05 22:33:48 +02:00
KennyTV
d7d4e58106
Packet type constants and auto channel mapping 2020-06-05 20:48:35 +02:00
KennyTV
9a59c40ce1
Fix dimension registry data 2020-06-05 14:02:09 +02:00
KennyTV
8a00e260f6
Pre 2 protocol bump 2020-06-05 13:22:58 +02:00
KennyTV
1285a0c6bf
1.16-pre1 2020-06-05 00:42:39 +02:00
KennyTV
eb9d913cb6
Add toString, equals, and hashCode to Metadata 2020-06-03 11:19:54 +02:00
KennyTV
796a42c981
Send new 20w22a tags 2020-05-29 20:36:40 +02:00
KennyTV
a9e2544188
20w22a 2020-05-29 15:14:18 +02:00
KennyTV
bea01bc794
Fix respawn reading 2020-05-23 12:46:15 +02:00
KennyTV
799c933d95
Make SoundRewriter fields protected 2020-05-23 11:14:50 +02:00
KennyTV
6b9e67f96b
Sound rewriter cleanup - don't send -1 sound ids
Addresses #1783
2020-05-23 10:56:27 +02:00
KennyTV
af3023562d
Fix dimension identifier 2020-05-20 17:02:22 +02:00
KennyTV
92f4e3dd81
20w21a 2020-05-20 16:44:12 +02:00
Myles
f7eb445d61
Merge pull request #1775 from KennyTV/abstraction
20w20a
2020-05-16 16:22:35 +01:00
KennyTV
98b77278cd
20w20b 2020-05-14 11:53:27 +02:00
FivePB (Xer)
1394c70981
Shouldn't try to write helpful messages when drunk 2020-05-13 20:56:15 +02:00
FivePB (Xer)
595b8c3b56
Yes much tree 2020-05-13 20:50:28 +02:00
FivePB (Xer)
27cbd844f0
Much fighting over this mess(age) 2020-05-13 20:48:51 +02:00
KennyTV
5c5c1ed402
20w20a 2020-05-13 18:08:33 +02:00
KennyTV
245c7e8219
Add wall_post_override blocktag 2020-05-12 22:51:02 +02:00
KennyTV
25d54ae229
Add runnable list to be executed before the full init 2020-05-09 09:46:15 +02:00
Gerrygames
5009ffbb5a handle new window type in 1.16 2020-05-08 01:36:24 +02:00
KennyTV
47b43402f5
20w19a 2020-05-06 19:11:05 +02:00
konwboy
222c03aa67 Fix block connections causing issues with TNT 2020-05-05 19:49:59 +02:00
Myles
d5ff2b5b63
Merge pull request #1735 from KennyTV/abstraction
Add fire connection handler
2020-05-02 15:35:38 +01:00
Gerrygames
93d21efd3d fix enchantments in enchanting table for 1.16 2020-04-29 21:10:05 +02:00
KennyTV
19201134a8
20w18a 2020-04-29 18:09:57 +02:00
KennyTV
da2f153a43
Share JsonParser instance 2020-04-27 14:41:57 +02:00
KennyTV
24ebb77860
Directly add dependent futures to the list instead of waiting for the extra boolean 2020-04-24 13:48:22 +02:00
KennyTV
e4bac5f81a
Improve shutdown of executor loader and mappings cache
Previously, the shutdown check would only happen once all futures were removed, as in a player joined that had to check the remaining protocols.
Now, the check will be done regularly once the plugin has fully been enabled and has the option to delay the shutdown until set on again (i.e. with ViaBackwards)
2020-04-24 13:27:29 +02:00
KennyTV
4b9a15b003
Some javadoc changes 2020-04-24 11:39:11 +02:00
KennyTV
32826467d3
Wrap reflectiveoperationexception in concurrentlist clone 2020-04-23 21:42:08 +02:00
KennyTV
886ac734f9
Add null check to channel close 2020-04-23 21:09:41 +02:00
KennyTV
762c66ff42
Farewell, lombok! 2020-04-23 21:07:12 +02:00
KennyTV
53b8c2328e
Uncache UserConnection on channel close, fix memory leak 2020-04-23 20:24:16 +02:00
KennyTV
578c661730
Check if player is handled by Via on disconnect 2020-04-22 22:11:01 +02:00
KennyTV
a82bbc4e66
Replace keyset map lookups with value iterator 2020-04-22 21:47:14 +02:00
KennyTV
867cd4ee39
Move heightmap code above block entity check 2020-04-22 21:46:14 +02:00
Myles
f7b841faf3
Merge pull request #1742 from Gerrygames/abstraction
convert height maps, fix 1.16 chunk reading
2020-04-22 20:44:47 +01:00
Gerrygames
b80902ec10 convert height maps, fix 1.16 chunk reading 2020-04-22 21:42:11 +02:00
Myles
90386cd0de
Merge pull request #1741 from Gerrygames/abstraction
20w17a
2020-04-22 18:15:02 +01:00
Gerrygames
e22bba0360 20w17a, update entity types renamed in 1.13 2020-04-22 19:04:53 +02:00
Myles
2734b18d07 Block connections true by default
While we didn't have this enabled when it launched, most of the bugs are gone and the number of people using this option is pretty high.
2020-04-19 18:59:38 +01:00
KennyTV
3a5a47aaa2
Add fire connection handler 2020-04-19 15:57:59 +02:00
KennyTV
c956f23def
Add safety checks to skullowner conversion 2020-04-17 21:02:51 +02:00
KennyTV
0f90efa05f
Add subplatform versions to dumps 2020-04-17 20:52:55 +02:00
KennyTV
83a6346a8d
Add git commit hash to dumps 2020-04-16 21:39:28 +02:00
Myles
d9291e6457
Merge pull request #1719 from creeper123123321/portedplayerschange
Remove portedPlayers field, let platform handle players
2020-04-15 23:11:09 +01:00
KennyTV
b03dfa9951
20w16a 2020-04-15 17:53:02 +02:00
creeper123123321
dd5cbb0e4c Merge branch 'abstraction' of https://github.com/ViaVersion/ViaVersion into portedplayerschange 2020-04-15 11:39:13 -03:00