1
0
Commit Graph

11264 Commits

Author SHA1 Message Date
Tiger Wang
8b62245dfb Remove LUA_PLUGIN_NAME_VAR_NAME 2021-06-28 21:54:21 +01:00
Tiger Wang
ddf352e1e3 Remove orphaned API symbols
https://github.com/cuberite/cuberite/issues/5195#issue-860458139
2021-06-28 21:54:21 +01:00
Tiger Wang
81f63b6a09 Re-export SetBlockMeta
* Fixes #5195
2021-06-28 21:54:21 +01:00
Tiger Wang
04f02a675d Protocol: use dedicated packet for 1 block change
It's six bytes smaller.
2021-06-28 21:54:21 +01:00
Tiger Wang
93611b8437 SetBedPos: make World parameter non-null
* Fixes #5190
2021-06-28 21:54:21 +01:00
Tiger Wang
2109057119 Windows: do not include sdkddkver before defining WIN32_WINNT
Including that header before defining the macro defaults the SDK to the latest version, not what we want.
2021-06-28 21:54:21 +01:00
Tiger Wang
91c1d1c58a Windows backtrace: fprintf to fputs 2021-06-28 21:54:21 +01:00
Alexander Harkness
17820b94f6 Double slabs are not transparent blocks
Fixes #4630
2021-06-27 17:21:44 +01:00
liuxsdev
ba07db937c
add missing ";;" in case statement (#5251) 2021-06-26 07:32:56 +00:00
Tiger Wang
ecc8ffbd80 Compile the entire Lua stack as C++
* Fixes #5216
2021-06-25 10:17:53 +01:00
Alexander Harkness
e77a4ab46d Compile with 4 threads on Jenkins builds, the build slaves were upgraded 2021-06-23 23:52:31 +01:00
x12xx12x
5b8b6eeaa8 fixed crash on lua DoExplosion call 2021-06-23 17:13:35 +01:00
x12xx12x
cc9f7c06b3
Add optional prefix parameter to LOG functions (#5229)
Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2021-06-22 23:09:06 +01:00
TheHyper45
3b35a00397
Death messages for tamed pets and ocelots are now tamable. (#5243)
* Fixing bugs regarding wolfs and ocelots

* Death messages appear after killing tamed ocelots and wolfs

* Style fix

* Added myself to the CONTRIBUTORS file

* Removed redundant string initialization

* Removed an unsafe cast.

* Changed the order of initialization of fields in constuctor of class cOcelot
2021-06-19 21:25:24 +00:00
Alexander Harkness
4e48464bb3
Move More CI into Jenkins - Travis Migration Progress (#5241)
* Add build stage to Jenkinsfile

* Run travisbuild in bash rather than sh

* Add GCC/Clang differentiation

* Use different working directory for each build type.

* Correct directory name

* Remove travis config file

* Always clean workspace afterwards
2021-06-17 08:31:29 +00:00
Alexander Harkness
62e95745ac
Migrate off CircleCI to Jenkins (#5230)
* Add Jenkinsfile

* cd src

* Escape wildcards

* Refactor stages

* Remove CircleCI junk

* Make clang-tidy do something

* updated regex to include only the files in the base src directory

* fixed errors displayed by new clang tidy version

* adjust clang core count to actual count

* Update README with new Jenkins build

Co-authored-by: 12xx12 <44411062+12xx12@users.noreply.github.com>
2021-06-15 09:00:02 +00:00
Isaac McFadyen
db68179776
Added AArch64 to easyinstall.sh (#5237)
* Added case statement in easyinstall.sh.

Added case statement in easyinstall.sh to allow install on Raspberry Pi 4 Ubuntu x64 (AArch64).

* Added mcfadyeni to CONTRIBUTORS
2021-06-09 23:32:05 +00:00
Mat
5b440c3ca7
Replace invalid references in deprecation messages (#5235) 2021-06-07 07:49:45 +00:00
12xx12
1322b0c4d1
fixed open inventory crash (#5233) 2021-06-06 20:49:18 +00:00
12xx12
e5fc65264b
Added standardised way to Log with plugin name (#5227)
* added logging functions to each plugin

* added documentation

* modified the global LOG macro

* updated the way of string composition

* removed cloumn

* removed capital v
2021-05-29 16:28:57 +00:00
12xx12
c7febf86e9
added check for harvestation in oreblock handler (#5226) 2021-05-26 18:07:50 +02:00
Feyo Korenhof
9ddc3635d6
Implemented cServer::ScheduleTask() and cServer::TickQueuedTasks() (#5224) 2021-05-26 18:07:32 +02:00
Tiger Wang
d92509a6e7
Re-implement up/down placement metadata (#5219)
+ Use player position when placing blocks which can face up or down, seems to better correspond to Vanilla behaviour.
* Fixes #4651
2021-05-14 10:42:08 +01:00
Tiger Wang
ce8d8388d6
Windows: remove extra newlines in backtrace (#5218)
- Remove DLL lines, not generally needed.
2021-05-06 14:25:12 +00:00
Tiger Wang
a62b2b1be2
Move item placement into item handlers (#5184)
* Move item placement into item handlers

+ Add appropriate CanBeAt checks in cPlayer::PlaceBlocks, into which all placement handlers call.
* Partly addresses #5157
* Fixes #4878
* Fixes #2919
* Fixes #4629
* Fixes #4239
* Fixes #4849

Co-authored-by: changyong guo <guo1487@163.com>
Co-authored-by: Xotheus <shady3300@outlook.com>
Co-authored-by: Krist Pregracke <krist@tiger-scm.com>

* Review fixes

* Update APIDesc.lua

* Rename

Co-authored-by: changyong guo <guo1487@163.com>
Co-authored-by: Xotheus <shady3300@outlook.com>
Co-authored-by: Krist Pregracke <krist@tiger-scm.com>
2021-05-05 13:25:10 +00:00
Tiger Wang
34bf5c0d9d Rename files to match code 2021-05-04 16:11:56 +01:00
nshah25
8be1dd54bb
Add player statistics to API (#5193)
* Fixed issue #5166

Co-authored-by: 12xx12 <44411062+12xx12@users.noreply.github.com>
Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2021-05-03 21:07:09 +01:00
Tiger Wang
626f8b2350
Style: specify include relativity (#5217)
* Style: specify include relativity, remove class prefix

* Fixes 4901

* Undo class name
2021-05-03 19:51:24 +00:00
Tiger Wang
9b97d63f8f
Chest, weather, crash, and miscellaneous fixes (#5215)
* Alpha-sort cChestEntity

* Chests: use SendUpdateBlockEntity

* Pathfinder: fix out of range Y

* 1.13: correct weather packet ID

* Chests: fix neighbour scanner

+ Add OnAddToWorld and overload to scan neighbours there, instead of in the constructor/OnUse. This fixes hoppers accessing newly loaded double chests and seeing a null m_Neighbour, thus thinking its a single chest.
* Fix typo in cross coords computation.
* Simplify hopper logic.

* Block entities: ASSERT that type is correct

If you match the block type first before calling DoWithBlockEntity, the corresponding block entity must either be empty or correspond to the block type.

* Chunk: fix some forgotten PendingSendBE cleanup

+ Add cleanup in SetAllData, WriteBlockArea
- Remove RemoveBlockEntity (used once), HasBlockEntity (not used)

* Replace MakeIndex with MakeIndexNoCheck

* Remove extraneous MarkDirty in hopper & chests
2021-04-30 13:23:46 +00:00
Morritz
a4eba7639e
Fix: GetPhysicalRamUsage on FreeBSD (UNIX) - webadmin display (#5213)
* Fix: GetPhysicalRamUsage on FreeBSD (UNIX) - webadmin display

* fixed cast type

* Fix: GetPhysicalRamUsage on FreeBSD - webadmin display / style and failing build fixes

* added myself to contributors

Co-authored-by: 12xx12 <44411062+12xx12@users.noreply.github.com>
2021-04-30 13:23:31 +00:00
jclever77
cbfc740ad0
Added functionality: mobs now enter boats and minecarts (#5214)
* Added functionality: mobs now enter boats and minecarts when coming into collision with them.

* Fixed basic style errors, nothing else

* Added self to contributors and reverted .gitignore to original state.
2021-04-30 11:39:10 +00:00
12xx12
903768489d
Fix random_engine seed cast (#5212) 2021-04-27 13:56:12 +01:00
12xx12
cc6b70ee49
fixed typo (#5208) 2021-04-23 21:33:47 +00:00
12xx12
4a2d0ce9d3
Fixing grass not generating below trees (#5199)
* moves the y-Position below the tree on grass generation
2021-04-23 20:00:02 +01:00
npresley0506
d117a6c5db
Repaired Hoppers Treating Chests as two entities (#5202)
* Repaired Hoppers Treating Chests as two entities

* Style changes

* style fixes

* Fixed style issues, also condensed logic in MoveItemsFromChest

* Used m_Neighbour, fixed styling

* GetNeighbour not ReturnNeighbour

Co-authored-by: npresley <npresley@umich.edu>
2021-04-23 12:51:59 +00:00
Jeffrey
59dbb37c9a
fix(docs): Correction of typos in project documentation (#5206) 2021-04-22 20:58:57 +00:00
12xx12
58b0322ca1
keeping the server from crashing (#5203) 2021-04-22 11:31:49 +00:00
Tiger Wang
1100b04b59
Make Windows go brrrr, not tick. tick. tick. (#5201)
* Fixes #5140
2021-04-21 16:07:48 +01:00
12xx12
37213eb76c
Resets ticks alive on death (#5197)
* resets ticks alive on death
* updated the comment in the .h file
2021-04-21 12:07:50 +01:00
12xx12
02571aae50
Disables the weather packet for 1.13 (#5200)
* disables the weather packet

* fixed style and removed extra semicolon
2021-04-20 15:09:20 +00:00
12xx12
efa5310d69
fixes the fallthrough (#5198) 2021-04-20 15:04:31 +00:00
Tiger Wang
5ae924ec74 ForestRocks: use make_unique to construct 2021-04-12 22:56:21 +01:00
Tiger Wang
d06930de75 Implement random ticks more faithfully
+ Make it pick 3 blocks per section, instead of 50 randomly throughout the chunk
2021-04-12 22:35:07 +01:00
Tiger Wang
7080c4d3e2 Hoppers: use 'locked' bit in meta 2021-04-12 22:35:07 +01:00
Tiger Wang
3001e23e8c Thrown potions/enderpearls: cleanup 2021-04-12 22:35:07 +01:00
Tiger Wang
951e6c76a7 cPlayer: move some constants out of header 2021-04-12 22:35:07 +01:00
Tiger Wang
a999c5d845 More cProtocol cleanup
* Alpha sort functions
* Simplify hand handling
* Fix left handed mode client-side display
2021-04-12 22:35:07 +01:00
Tiger Wang
63ded9f6b4 Add animations for shield/item block & break 2021-04-12 22:35:07 +01:00
Tiger Wang
99bd05dff5 Add magical critical effect 2021-04-12 22:35:07 +01:00
Tiger Wang
17c091a97f Fix thrown snowball/egg hit animations
+ Snowballs destroy ender crystals
2021-04-12 22:35:07 +01:00