Tiger Wang
e3d0874f7d
ByteBuffer: fully defined Position handling
...
Cast input ints into unsigned to make them 2s complement guaran☕ d.
2022-01-16 17:41:46 +00:00
Tiger Wang
da0fdbe113
syntax
2022-01-14 19:43:29 +00:00
Tiger Wang
903bcfc61f
eblockface
2022-01-14 19:43:29 +00:00
x12xx12x
58f8918bcb
so much big brain time - it hurts
2022-01-14 19:43:29 +00:00
Marc Lorenz
c741d81017
fixed bad web merge
2022-01-14 19:43:29 +00:00
Marc Lorenz
00dbbabc5c
fixed possible 64+64 error
2022-01-14 19:43:29 +00:00
x12xx12x
5fa68ea807
fixed cast
2022-01-14 19:43:29 +00:00
x12xx12x
d7c2c4acf3
auto > char
2022-01-14 19:43:29 +00:00
x12xx12x
2ec73a3fbd
fixed compile error in jenkins and more warnings
2022-01-14 19:43:29 +00:00
x12xx12x
250b8eb652
Fixed Compiler Warnings
2022-01-14 19:43:29 +00:00
Bond_009
b14874978a
Fix WriteXZYPosition64 and add tests
2022-01-14 17:24:59 +00:00
Kingsley Collie
77a44e8dce
Simplify diff and remove excessive logging.
2022-01-13 00:39:12 +00:00
Kingsley Collie
e1154ad070
Refactor into switch statement
2022-01-13 00:39:12 +00:00
KingCol13
f126e671f9
Account for shift clicking or removing fuel from furnance.
2022-01-13 00:39:12 +00:00
KingCol13
b7f1bbb8d9
Reject non-fuels being placed in the furnace fuel slot.
2022-01-13 00:39:12 +00:00
Bond_009
bc332ebb9c
Fix build on Clang < 12
2022-01-12 23:48:19 +00:00
Bond_009
1a31098182
Fix compilation with Clang 13.0.0
...
Clang 13 changes:
* `-Wreserved-identifier` and `-Wunused-but-set-variable` got added
* the `-Wreturn-std-move-in-c++11` option was removed
Builds still fail when native optimizations are enabled
2022-01-12 23:48:19 +00:00
Tiger Wang
efeedcbd4d
Suspicious packets: give 'em the silent treatment ( #5375 )
...
Ref: #5372
2022-01-02 16:37:57 +00:00
Michal Havlíček
9f2a198a62
Fixed diagonal redstone powering ( #5363 )
...
* Fixed diagonal redstone powering
* Transparent blocks don't transmit downwards
2022-01-02 16:37:39 +00:00
Tiger Wang
9245ab7e05
Alpha sort BlockInfo and Block/ItemHandler
2022-01-02 14:47:48 +00:00
Tiger Wang
178d1d2bda
ClientHandle: improve right-click robustness ( #5372 )
...
* ClientHandle: improve right-click robustness
+ Add checks for result of GetBlockTypeMeta
+ Kick if the client sent an invalid block face or coordinate
* Update outdated comments
2022-01-02 12:19:13 +00:00
Tiger Wang
c52f299e72
Handlers: update item and block handlers ( #5371 )
...
+ Resend blocks when server rejects placement because in a block
* Fix chest handler not invoked, fixes #5367
* Fix comparator handler not invoked
* Update some naming
2022-01-02 11:56:36 +00:00
Tiger Wang
1616108af3
WriteBlockEntity: don't write position multiple times ( #5373 )
2022-01-02 10:48:02 +01:00
Tiger Wang
9914393c63
Update to mybed 3.1.0
2022-01-01 23:55:36 +00:00
Michal Havlíček
95ea581fba
Fixed ladder placing restrictions
2021-12-31 23:45:19 +00:00
Persson-dev
ad216a00ab
Handle name item packet
2021-12-31 14:51:51 +00:00
Michal Havlíček
1806f3acef
Added glass to FullyOccupiesVoxel
2021-12-31 12:25:00 +00:00
Michal Havlíček
158435737e
Transparent blocks no longer conduct redstone power ( #5359 )
...
* Fixes #5336
2021-12-30 22:09:58 +00:00
Persson-dev
1edc6c8601
Add skeleton bow pulling animation ( #5355 )
...
* Added basic skeleton bow animation
* Fixing style
2021-12-29 20:30:09 +01:00
Persson-dev
fec64bb91c
Improved farmer AI & Fixed entity loading functions ( #5351 )
...
* Allow villagers to pickup items
* Add farmer villager harvesting
* Use of auto keyword
* Using for loop to check adjacent crops
* Show particules when farmer harvest
* Fix area comment
* Move constants to header file
* Removing unnecessary semicolon
* Initialization of CropBlockType variable
* Apply 12xx12 suggestion
* Fixing area constant size
* Refactor bounding box calculation, use vectors.
* Add Api documentation
* Update lua docs
* Rework farmer ai
* Fixing lua docs notes
* Add missing capitalisation
* Add villagers inventory save
* Fixing loading entities from disk inconsistencies
* Add farmer harvest animation
* Fix beetroots grow state
Co-authored-by: Alexander Harkness <me@bearbin.net>
2021-12-29 20:28:41 +01:00
Persson-dev
0607d8b408
Update solid and transparent blocks ( #5353 )
2021-12-27 17:43:19 +00:00
Persson-dev
640fbbbd92
Slow down arrows in water ( #5350 )
...
* Slow down arrow in water
* Added myself to contributors
2021-12-19 20:58:55 +01:00
KingCol13
2cd7e63e87
Apply tigerw's suggestion.
2021-12-18 20:46:03 +00:00
Kingsley Collie
a9e111678a
Add delay to new slime spawns after slime death.
2021-12-18 20:46:03 +00:00
Alexander Harkness
7790ebc63b
Expand log4j mitigiation to cover more cases.
2021-12-10 23:00:37 +00:00
Alexander Harkness
0f8a8de77c
Mitigate against CVE-2021-44228
2021-12-10 23:00:37 +00:00
x12xx12x
3ff57559e3
ItemHandler initialisation is a constant expression ( #5344 )
...
* Transition to non-pointer item handler
* That is my destructor - I decide when I leave this world
* I declare your destruction private and you final
2021-12-01 23:31:10 +00:00
Feyo Korenhof
1be14ebf7f
Added ExperienceAmount variable to HOOK_PLAYER_FISHING and HOOK_PLAYER_FISHED ( #5345 )
...
* Implemented cServer::ScheduleTask() and cServer::TickQueuedTasks()
* Fixed formatting and added ScheduleTask to APIDesc
* Added feyokorenhof to contributors
* Added ExperienceAmount variable to all the hook calls.
* Made ExperienceAmount int reference instead of int in HOOK_PLAYER_FISHING. Fixed bug: a_Reward is now a reference
* Add documentation, change ItemFishingRod to pass in experience
Co-authored-by: Alexander Harkness <me@bearbin.net>
2021-11-29 12:53:58 +00:00
Tiger Wang
7c7890c658
Protocol: modernise plugin message handling ( #5325 )
...
- Remove handling for garbage data in command block sets
+ Add correct boolean value read (#1692 )
* Make better use of namespaced-id and string_view
2021-11-23 17:16:25 +00:00
Alexander Harkness
8b4fca4ec5
Dump the api as well as checking it.
2021-11-22 22:34:23 +00:00
Alexander Harkness
f9fc73f6cf
Fixup #5319
2021-11-22 21:54:58 +00:00
Alexander Harkness
1f9de1de9e
#5319
...
Archive luacheckrc
2021-11-22 19:35:00 +00:00
AirOne
39392bbeae
Bind more ClientHandle functions to Lua ( #5334 )
...
+ Bound the following functions to Lua
+ SendBlockBreakAnim
+ SendCollectEntity
+ SendDestroyEntity
+ SendDetachEntity
+ SendEditSign
+ SendLeashEntity
+ SendThunderbolt
+ SendUnleashEntity
Co-authored-by: BuildTools <unconfigured@null.spigotmc.org>
2021-11-22 00:26:33 +00:00
Tiger Wang
95bc2eac22
Protocol 1.8: fix plugin message payload read size ( #5324 )
...
* Read the entire payload of an unhandled vanilla plugin message, remove -1 offset. This was forgotten by #5085
* Fixes #5322
2021-11-14 18:18:59 +00:00
Tiger Wang
d49ce751ba
Miscellaneous fixes ( #5320 )
...
* Protocol: update Abilities flags
+ Add Spectator handling
* BioGen: move <iostream> include
* ClientHandle: rename Respawn packet dimension check flag
* Make it clearer what it's doing.
* ClientHandle: move ProcessProtocolIn calls to World
* Player: remove some redundant initialisation
* Player: UpdateCapabilities enables flight for spectators
* Produce growth: improve comments
* ClientHandle: run unload checks using delta time
* Fix forgotten initialisation of time member
2021-11-11 21:02:29 +00:00
Ethan Jones
afe07fe090
Prevent placing of hangables on illegal blocks and break when support block broken ( #5301 )
...
+ Prevent placing of hangables on illegal items and break when support block is broken
Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2021-10-03 21:29:45 +01:00
Tiger Wang
1d72306bae
Authenticator: avoid move assignments to self ( #5315 )
...
If authentication was off cClientHandle::m_Username ended up moved into itself. Add a copy to avoid this. Thanks @Seadragon91!
2021-10-03 17:09:25 +00:00
Tiger Wang
1e4850a6c5
World: change spawnpoint type to int ( #5313 )
...
* World: change spawnpoint type to int
As Vanilla does.
2021-10-03 17:43:22 +01:00
Tiger Wang
8b0d0e96c3
Protocol 1.8: fix duplicated vector component in spawn packet ( #5314 )
...
* Fixes #5306
2021-10-03 12:29:44 +00:00
JK2K
be3111d133
Perform bed checks upon respawn ( #5300 )
...
Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2021-10-02 21:28:24 +01:00