Commit Graph
100 Commits
Author SHA1 Message Date
Mat 40b6758905 Add block handler for huge mushroom blocks (#5143) 2021-03-05 19:43:40 +01:00
mathiascode 2103308618 Ignore CanFly flag sent by the client 2020-12-18 21:03:50 +00:00
Mat cb1f0a5af2 Update bed behavior (#4545) 2020-08-05 19:38:29 +00:00
mathiascode 213d749f43 Update Core 2020-08-05 20:56:10 +03:00
MatandTiger Wang eb0f640fa0 Initial work on 1.13 entity metadata (#4539)
* Initial work on 1.13 entity metadata

* Largely complete metadata

Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-07-17 19:33:02 +01:00
Mat e0a361de2a Send entities in cChunkSender (#4532)
Confer issue #3696
2020-06-24 12:48:50 +01:00
Mat e053f72db8 Android build cleanup (#4734)
* Android build cleanup

* Remove unnecessary workaround

* Remove more unnecessities

* Bump cmake version
2020-05-10 16:18:28 +00:00
Mat 53d1c9036b Remove pkFishingFloat documentation (#4732) 2020-05-10 13:44:10 +03:00
Mat 388c96bbe2 Don't include folder itself in AutoAPI.zip 2020-05-08 20:48:53 +03:00
Mat c710f6a4ea Remove old Android leftovers (#4722) 2020-05-07 22:14:00 +03:00
Mat f3b4183dc2 Remove coverity_scan branch reference 2020-05-07 17:28:28 +01:00
Mat d21305b156 Delete CoverityModel.cpp 2020-05-07 17:28:28 +01:00
Mat 73f6d17ca1 Remove unused Coveralls-script
Disabled in https://github.com/cuberite/cuberite/commit/a22f0795f61108e06e1b7efef7681f314b3ea1a1
Reference removed in https://github.com/cuberite/cuberite/commit/ea43ae231818e7999eb6c218a65198b3438a440c
2020-05-07 06:42:11 +03:00
Mat f4b5c4c341 Remove cRankManager migration code (#4714)
* Remove cRankManager migration code

* Restore mistakenly removed code

* Display log message when creating ranks
2020-05-05 21:20:07 +03:00
Mat f5ce03d10d Assert if world is incorrect 2020-05-03 11:49:00 +01:00
mathiascode 5f2c572f9a Set entity world early 2020-05-03 11:49:00 +01:00
Mat 9432b57ba8 Get biome at world coords on mob spawn (#4692) 2020-04-25 00:00:27 +02:00
mathiascode e6cc792cef Prevent bookshelf pickup crash
If no tool was involved in the creation of a bookshelf pickup (e.g. explosion), the server would crash due to a missing nullptr check. Removed the IsTool check completely, since we don't use it elsewhere, and vanilla doesn't do such checks either.
2020-04-24 19:39:22 +03:00
Mat f931590bf0 Prevent crash when breeding 2020-04-16 18:03:51 +00:00
Mat d4f3d674d1 Use correct value for zombie villager in 1.13 2020-04-10 05:17:46 +03:00
Mat d966a12624 Don't set entity world twice (#4606)
* Don't set entity world twice

* Call HookSpawnedEntity when the entity actually spawned
2020-04-09 20:26:06 +00:00
Mat 23219c4738 Wolves and mooshrooms are passive mobs 2020-04-09 12:39:45 +01:00
Mat 6a21bf979c Initial resource pack support (#4622) 2020-04-07 21:23:54 +00:00
Mat 3eaab73540 Potion changes (#4601)
* Correct protocol translation for potions

* Update brewing recipes
2020-04-04 14:16:36 +00:00
Mat 60bcc06f43 Implement wither skeletons (#4563) 2020-04-04 13:44:17 +02:00
Mat 4c6f95f49a Quick fix to make spawn eggs work (#4611) 2020-04-03 21:56:48 +03:00
mathiascode fdee483781 Update Core 2020-04-03 19:02:15 +03:00
Mat 4ed182c13a Tweak pickup sound pitch (#4598) 2020-04-03 15:49:12 +00:00
Mat 2e615914ea WebAdmin logo improvements (#4604) 2020-04-03 15:41:29 +00:00
Mat 318d31dc39 Use a reasonable listen backlog value (#4597) 2020-04-02 16:05:07 +02:00
mathiascode d5c58c6b17 Tweak attack ranges 2020-04-02 09:30:50 +02:00
Mat 5eb1ba3bcc Lua API for spectating entities (#4518) 2020-03-30 21:35:37 +02:00
Mat c04ba834d1 Send experience on respawn (#4586) 2020-03-30 21:29:59 +02:00
Mat 31ace87d28 Add protocol mob ID remapping (#4538) 2020-03-29 17:54:37 +02:00
Matandpeterbell10 fce548139b Inventory changes (#4561)
Co-Authored-By: peterbell10 <peterbell10@live.co.uk>
2020-03-28 13:52:40 +00:00
Mat ec7247fa63 Toss all items from enchantment table (#4569) 2020-03-28 14:01:21 +02:00
Mat 92cf553bf8 Reduce ghast spawn rate again 2020-03-27 21:00:26 +02:00
Mat c9b3d2d95a Reduce ghast spawn rate 2020-03-27 20:29:43 +02:00
Mat 7d8da81b92 Updated plugin list format (#4557) 2020-03-27 13:47:04 +01:00
Mat f5beeccd25 Fix typo in floater code (#4556) 2020-03-27 02:40:40 +02:00
Mat 996ce888e1 Fix typo in block break particle coordinate (#4555)
* Use Vector3d for block break particle

* Fix typo
2020-03-27 02:40:16 +02:00
Mat 2b32bb0b19 Decrease attack cooldown for monsters (#4542)
* Decrease attack cooldown for monsters

* Nerf some mobs

* Decimal points
2020-03-26 20:11:43 +02:00
Mat 84f86a467e Improvements to blaze and ghast (#4547) 2020-03-26 18:54:40 +01:00
Mat 195bebb480 Disable bonemealable settings for now (#4551) 2020-03-26 17:06:15 +00:00
Mat b7e88e2c9f Fix nether mob spawning (#4546)
* Fix nether mob spawning

* Remove zombie from nether mobs
2020-03-25 10:49:36 +00:00
Mat 782619e3f8 Send respawn packet by default (#4540) 2020-03-24 14:54:12 +00:00
Mat fdca7dc7f1 Furnace and brewing stand drops (#4534)
* Furnace drops contents

* Brewing stand drops contents

* Fix lit furnace drop

* Fix brewing stand drop

* Style

* Style
2020-03-24 14:16:09 +02:00
Mat 0d0d019bbe Fix certain item drops (#4536)
* Fix certain item drops

* Revert unwanted changes

* Revert unwanted changes

* Revert change

* Style fixes
2020-03-23 22:07:08 +02:00
mathiascode bff7319622 Enable functional packets in 1.13 2020-03-23 18:02:32 +02:00
Mat 4fde622e2d Play sound when brewing is complete 2020-03-23 16:12:54 +02:00
Matandpeterbell10 f5d24746d6 Jukebox improvements (#4537)
* Add jukebox block handler

Co-authored-by: peterbell10 <peterbell10@live.co.uk>
2020-03-23 13:45:09 +00:00
Mat 7d05e4402f Don't attempt to give bucket with item count of 0 2020-03-23 11:39:32 +02:00
Mat 4b57513dd6 Cocoa pods have three growing stages 2020-03-23 10:19:52 +02:00
Mat 7700116330 Pickup spawn improvements (#4525)
Pickups are now thrown around when spawned, like in vanilla. Pickups also bail out of the collision detection checks while being created, to prevent them from blasting too far off in e.g. cobblestone generators.
2020-03-23 00:05:47 +00:00
Matandpeterbell10 41e09484b7 Don't push blocks outside world height limits (#4516)
* Don't push blocks outside world height limits

* Style fix

* Apply suggestion

Co-Authored-By: peterbell10 <peterbell10@live.co.uk>

* Apply suggestion

Co-Authored-By: peterbell10 <peterbell10@live.co.uk>

* Improvements

* Add block type check back

* Revert line break changes

* Update BlockPiston.cpp

Co-authored-by: peterbell10 <peterbell10@live.co.uk>
2020-03-22 22:51:11 +02:00
Mat 9ddf433ae7 Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
Mat 076749bd36 Increase speed of splash potion and expbottle (#4513) 2020-03-22 17:44:24 +02:00
Mat 0b0d6b23d2 Fix effect crashes (#4530)
* Fix effect crashes

* Change according to suggestion
2020-03-22 17:34:24 +02:00
Mat c968f1f7da TNT position fixes (#4519)
* TNT position fixes

* Don't add offset to explosion spawn coords

* Don't make other entities push TNT

* Correct initial TNT speed

* Fix typo

* Improvements

* Revert unwanted change

* Style fixes

* Update format
2020-03-22 17:33:36 +02:00
Mat 00ae9604e1 Fix invalid explosion damage (#4529) 2020-03-22 13:02:21 +00:00
Mat 581c1e5034 Fix typo in fish meta 2020-03-22 14:43:12 +02:00
Mat c0c9bf2b86 Don't enchant an already enchanted book 2020-03-22 13:32:24 +02:00
mathiascode dbca823e65 Update Core 2020-03-22 12:45:17 +02:00
Mat c750c4e55f Fix armor protection (#4506)
* Fix armor protection

* Check min damage

* Check min damage

* Commit missing changes

* Convert to int

* Use float

* Float some more
2020-03-22 12:39:32 +02:00
Mat 49dd645aa6 Don't remove items twice (#4524)
* Don't remove items twice
2020-03-22 12:17:04 +02:00
Mat 038194d2a6 Allow enderman to attack during day (#4522) 2020-03-22 12:13:44 +02:00
Mat 3d5a295423 Ender chest is not affected by piston (#4526) 2020-03-22 00:18:49 +00:00
Mat c4fc6a5343 Bonemeal cannot be used on cactus and sugar cane 2020-03-21 19:46:57 +02:00
Matandpeterbell10 0de2a32365 Don't call player movement hook if nothing changed (#4517)
Co-authored-by: peterbell10 <peterbell10@live.co.uk>
2020-03-21 12:57:19 +00:00
Mat 61a6a18b79 Improve explosion visuals (#4511) 2020-03-20 23:42:16 +00:00
Mat 7d8f8c95ff FIx formatting issue in Backers file 2020-03-20 00:56:49 +02:00
Mat cdcd01fb20 Add TooAngel to backers 2020-03-20 00:55:39 +02:00
Mat 646d3d6a2e Remove leading slash from command block commands (#4502) 2020-03-19 20:06:25 +01:00
Mat 0e07e231a2 Improvements to knockback (#4504)
* Improvements to knockback
* SetSpeed for explosions
* Improve code consistency
2020-03-19 17:13:41 +00:00
Mat 599d42e6d3 Prevent arrows from sinking into the ground (#4509) 2020-03-19 09:58:20 +00:00
Mat 47fa636e34 Change outdated air drag value for arrows 2020-03-19 04:47:54 +02:00
Mat 5869a53e21 Change outdated air drag value for TNT 2020-03-19 04:35:21 +02:00
Mat 0718c44e77 Silk touch pickaxe drops grass block (#4485) 2020-03-17 02:23:50 +02:00
mathiascode 47d9550f2e Update Core 2020-03-17 02:13:51 +02:00
Mat 5a2163d7e6 Don't send entity velocity for boats (#4488)
* Don't send entity velocity for boats
2020-03-07 13:56:02 +02:00
Mat 83a41c93e9 Attached entities can't enter portals (#4484)
* Attached entities can't enter portals

* Whitespace fixes
2020-03-05 21:33:43 +02:00
Mat d572ad7faf Don't spawn boats in ground 2020-03-05 16:05:30 +02:00
Mat cff9f7571b Use LastSentPos for mob spawn packet in 1.11+ (#4490) 2020-03-05 12:58:46 +02:00
Mat 7d4934534e Stabilise MoveToWorld (#4004)
* Stabilise MoveToWorld

* Fix comments and deprecate ScheduleMoveToWorld

* Enhanced thread safety for m_WorldChangeInfo

* Return unique_ptr from cAtomicUniquePtr::exchange

* cWorld now calls entity cEntity::OnAddToWorld and cEntity::OnRemoveFromWorld.

Allows broadcasting entities added to the world from the world's tick thread.
This also factors out some common code from cEntity::DoMoveToWorld and cEntity::Initialize.

As a consequence, cEntity::Destroy(false) (i.e. Destroying the entity without broadcasting) is impossible.
This isn't used anywhere in Cuberite so it's now deprecated.

* Update entity position after removing it from the world.
Fixes broadcasts being sent to the wrong chunk.

* Fix style

* cEntity: Update LastSentPosition when sending spawn packet

* Add Wno-deprecated-declarations to the lua bindings

* Kill uses of ScheduleMoveToWorld
2020-03-05 12:52:34 +02:00
Mat aba329544f Prevent container item duplication (#4476) 2020-03-04 15:12:15 +01:00
Mat 1ab87be80c Play correct sound when entities are hit by arrows (#4481) 2020-03-04 02:05:04 +02:00
Mat dca896dfcc Boats can be spawned on land 2020-03-01 13:27:19 +00:00
mathiascode ddc92ec034 Update ProtectionAreas 2020-02-27 19:45:38 +02:00
Mat 55296cc915 Update copyright year 2020-02-26 22:27:09 +02:00
mathiascode 3d699c0dc4 Remove 1.13 from supported protocol list 2020-02-24 09:33:59 +01:00
mathiascode 2bd42d2639 Update submodules 2020-02-24 00:29:00 +02:00
Mat 6e568e605e Show correct paths in compile script 2020-02-18 16:04:43 +00:00
Mat e290cb4e9b Remove unused file in Unix executable list 2020-02-10 21:54:52 +02:00
Mat a867388f64 Strip debug symbols from Android builds 2020-01-16 16:28:34 +01:00
Mat 6d938c0e3f Blocks are usable in adventure mode (#4464) 2020-01-15 23:54:48 +02:00
Mat fdc190613a Bump Android API to min supported 2020-01-03 02:40:26 +02:00
Mat dd665f092f Clean up server folder for Android (#4448) 2020-01-02 17:59:07 +02:00
Mat 57a248bfbf Skip release builds outside master (#4447)
* Skip release builds outside master

* Remove tab character
2019-12-31 09:40:45 +02:00
Mat fd3866154e Include missing server files (#4446) 2019-12-30 19:05:19 +02:00
Mat 586a618640 Remove lang folder (#4445) 2019-12-30 16:02:11 +02:00