1
0
cuberite-2a/Server/Plugins
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
..
APIDump Stabilise MoveToWorld (#4004) 2020-03-05 12:52:34 +02:00
ChatLog@cc04da381b Updated plugins with the rename to Cuberite. 2016-01-01 21:40:18 +01:00
Core@622f40d431 Update submodules 2020-02-24 00:29:00 +02:00
Debuggers Minor changes (#3909) 2017-08-24 11:19:40 +02:00
DumpInfo Updated DumpInfo plugin 2015-11-29 17:28:02 +01:00
HookNotify Renamed leftover strings to Cuberite / Server, as needed. 2016-01-01 21:05:09 +01:00
NetworkTest Renamed leftover strings to Cuberite / Server, as needed. 2016-01-01 21:05:09 +01:00
ProtectionAreas@5cc1171bb1 Update ProtectionAreas 2020-02-27 19:45:38 +02:00
TestLuaRocks Update TestLuaRocks.lua (#3903) 2017-08-13 12:29:24 +01:00
.gitignore Renamed output directory to Server 2015-09-05 22:01:21 +02:00
InfoDump.lua Minor changes (#3909) 2017-08-24 11:19:40 +02:00
InfoReg.lua Corrected check for level of subcommand and fixed multiple levels not working (#3758) 2017-06-12 12:59:46 +02:00