Commit Graph

11470 Commits

Author SHA1 Message Date
Tiger Wang
de5b89dbea
Disable u8 prefix C++20 warning since we need it 2022-02-17 18:41:24 +00:00
Tiger Wang
3a9bd50898 BigFlower: handle environmental destruction 2022-02-13 18:30:10 +00:00
Tiger Wang
31ab16d52b ClientHandle: cancel multi-block placements correcty
https://github.com/cuberite/cuberite/pull/5392#issuecomment-1032712796
2022-02-12 14:22:26 +00:00
Rodarg
1fd826aed7 Update CONTRIBUTORS
my bad
2022-02-09 08:45:25 +00:00
Rodarg
3597cd698a Update CONTRIBUTORS
Added myself
2022-02-09 08:45:25 +00:00
Tiger Wang
f98ceebea1 style 2022-02-09 08:45:25 +00:00
Rodarg
49322163d5 Correct Indentation IF 2022-02-09 08:45:25 +00:00
Rodarg
350c801b41 Update BlockBigFlower.h
Made compliant with review
2022-02-09 08:45:25 +00:00
Rodarg
af2b004d57 Update BlockBigFlower.h
Removed if statement checking if the top part of the block was broken and replaced the dropBlockAsPickups to SetBlock(Air)
2022-02-09 08:45:25 +00:00
Tiger Wang
efa133b4ee ClientHandle: update variable names 2022-02-08 21:47:19 +00:00
Tiger Wang
5e3a6770b9 Spectators: prevent using items and spawn eggs 2022-02-08 21:47:19 +00:00
Tiger Wang
4b60d55d8d Spectation: keep track of spectators
+ Keep a list of spectators so that pointer clean-up can happen when the spectated is killed.
* Fix invalid game state when riding/spectating and then entering or leaving spectator mode.
2022-02-08 21:47:19 +00:00
Rorkh
5fe1fe899b
Custom 25565 port page (#5369)
+ Add a custom response when an HTTP request comes in to port 25565...

Co-authored-by: Alexander Harkness <me@bearbin.net>
2022-01-27 00:56:45 +00:00
Tiger Wang
fa92f5294f Update to libdeflate 1.9 2022-01-26 22:04:24 +00:00
Simon Pribylski
f4c0429996
Add player permission level (#5358) 2022-01-24 20:24:55 +00:00
Alexander Harkness
5614d267f7
Add aarch64 to easyinstall. Fixes #5386 2022-01-22 01:08:51 +00:00
Tiger Wang
e3d0874f7d ByteBuffer: fully defined Position handling
Cast input ints into unsigned to make them 2s complement guarand.
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