peterbell10
ef091fe24b
cBlockRail: Fix assertion failure ( #4075 )
2017-11-21 21:54:21 +00:00
Bond-009
5badb9bcca
cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors ( #4050 )
2017-11-20 11:13:11 +00:00
peterbell10
bf5e6874fe
cItemHandler: Update max stack size of old doors. ( #4072 )
2017-11-20 11:04:17 +00:00
peterbell10
c54bf40ef9
cWorld Threads: Seperate initialization and thread start.
...
Prevents nullptr dereferences before Start has been called.
2017-10-21 19:33:22 +02:00
peterbell10
1537ebed6f
cWorld: Move Initialization from Start to the constructor.
...
Start now does nothing more than launch the world's threads.
2017-10-21 19:33:22 +02:00
peterbell10
0bacda3269
Implement horse inventory ( #4053 )
...
* Implement horse inventory
* Fix sign conversions
* Add API doc for ItemCategory::IsHorseArmor
* Improve HandleOpenHorseInventory comment and style fixes.
2017-10-21 17:56:09 +01:00
Bond-009
e585595ae6
Fixed some small passive mob issues ( #4057 )
...
* Chickens can be bred with seeds, beetroot seeds, melon seeds, or pumpkin seeds Ref: https://minecraft.gamepedia.com/Chicken#Baby_chicken
* Baby passive mobs don't drop items
* Fixed the size of some mobs
2017-10-21 17:55:46 +01:00
peterbell10
744cdb726d
Fix minecart deceleration ( #4059 )
2017-10-21 17:53:24 +01:00
Bond-009
05e7be7f73
Fixed FreeBSD build ( #4061 )
2017-10-16 18:39:53 +01:00
Bond-009
76a0971279
Fixed 2 small warnings ( #4055 )
2017-10-02 20:59:25 +01:00
peterbell10
8866a28cf8
Fix explosion interaction with block entities. ( #4052 )
...
* WriteBlockArea: Fix erasing of block entities.
* cChunkMap::DoExplosionAt destroys block entities
2017-09-27 22:22:15 +01:00
peterbell10
4b14a5b4c1
cPressurePlateHandler: Fix uninitialised variables. ( #4047 )
2017-09-25 21:41:11 +01:00
Bond-009
10c5c1227e
BroadcastBlockBreakAnimation and BroadcastBlockEntity use vectors ( #4038 )
2017-09-25 18:17:45 +02:00
peterbell10
463fa48aec
cBlockArea: Fix performance regression ( #4045 )
2017-09-23 17:47:46 +01:00
peterbell10
e883aa828c
Add support for release 1.12.2 ( #4041 )
2017-09-21 14:12:43 +01:00
peterbell10
15fd4ef829
Only allow snow to be placed where valid. Fixes #2920 .
2017-09-21 13:01:00 +01:00
peterbell10
ab4f0df5b9
Only allow rails to be placed where valid.
...
Fixes #3507 .
2017-09-21 13:01:00 +01:00
Lukas Pioch
da11d94933
Added working directory for x64 builds ( #4037 )
2017-09-20 19:01:46 +01:00
Mattes D
e0d1f791a3
Fixed webadmin certificate reading.
2017-09-19 19:44:30 +02:00
Lane Kolbly
30c8470a52
Changed BroadcastSoundEffect, SendSoundEffect, and CastThunderbolt parameters to vectors ( #3959 )
...
* Made BroadcastSoundEffect take vector parameters.
* Added docs for new vectored methods
* Removed old code
* Fixed lua warnings
* Made old BroadcastSoundEffect not an override.
* m_Block to m_BlockPos, used Vector3d constructor where prettier.
* a_Block to a_BlockPos
* Changed thunderbolt a_Block to a_BlockPos
2017-09-19 15:12:54 +01:00
peterbell10
8835bf344d
cRoot: Make PollPeriod representation 32 bit ( #4030 )
2017-09-19 14:14:44 +01:00
Bond-009
491e91dc88
Leaves now drop with the correct meta when broken by a pickaxe with silk touch ( #4034 )
2017-09-19 09:44:21 +01:00
Lukas Pioch
c5f590d460
Removed UTF-8 BOM ( #4033 )
2017-09-19 10:34:08 +02:00
peterbell10
b5fa96f4f8
cFinishGenPreSimulator: Preserve sand meta ( #4025 )
...
Fixes #1516 .
2017-09-18 08:45:32 +01:00
Alexander Harkness
0968a4d360
Fix error with implicit cast from long long to long ( #4026 )
2017-09-14 13:11:22 +02:00
peterbell10
307e7aaff5
Fix switch warnings ( #4013 )
...
* Fix switch warnings
* Fix a variety of -Wswitch and -Wswitch-enum warnings
* Remove unneeded -Wno-error flags
* Reorganise some eMonsterType switches
* Alpha sort eMonsterType cases in WriteMobMetadata
and in cNBTChunkSerializer::AddMonsterEntity
* List all mob types in protocol 1.12 and NBTChunkSerializer
* cStructGenTrees::GetNumTrees: remove switch default
* cWSSAnvil::LoadOldMinecartFromNBT: Log unhandled minecart type
2017-09-14 09:48:57 +01:00
Alexander Harkness
a4c07d2f98
Adjust lava damage values ( #4020 )
...
Fixes isue #2925
2017-09-12 09:02:17 +01:00
peterbell10
3ec9e6ec87
Limit how long cRoot::InputThread may block ( #4019 )
...
Limit how long cRoot::InputThread may block
Only calls `std::getline` when there is input available
which removes the need to "notify" the input thread.
Fixes #2494 and fixes #3177
2017-09-12 07:41:39 +01:00
peterbell10
e225b7f826
Replace ItemCallbacks with lambdas ( #3993 )
2017-09-11 23:20:49 +02:00
peterbell10
115bc5609a
cBlockArea: change MakeIndex to return size_t
2017-09-11 23:20:12 +02:00
peterbell10
4a0355f065
cBlockArea: use unique_ptr
2017-09-11 23:20:12 +02:00
Alexander Harkness
4e7325c9e2
Fix crash for players out of the world. Fixes #4006 ( #4007 )
2017-09-10 17:45:18 +01:00
Alexander Harkness
c334824199
Shutdown connection when disconnect packet sent ( #3999 )
2017-09-08 09:36:23 +02:00
Lane Kolbly
b12f4ef7d5
Made world data paths adjustable, and added API to temporarily disable saving chunks to disk. ( #3912 )
2017-09-07 13:41:16 +01:00
Alexander Harkness
b5a23e5cd9
Lighting now generally consistent with vanilla ( #3988 )
...
* Lighting now generally consistent with vanilla
Skylight is now dispersed by some blocks, instead of passing
through unimpeded.
Some blocks which were not marked as transparent are now marked as
such.
Water and other such blocks now attenuate light with the correct
intensity.
Generally changes were based on documentation in the Minecraft
Wiki: https://minecraft.gamepedia.com/Opacity#On_block_light ,
however during play-testing on vanilla lava was found not to
attenuate sky or block-light so the attenuation was removed.
This fixes #3849
* Add API documentation for IsSkylightDispersant
* Rename m_SkylightDispersant to m_IsSkylightDispersant
* Update comment for m_Transparent property of Blocks
2017-09-07 11:56:17 +01:00
Lane Kolbly
dc294cdc51
Switched player statistic store to save with UUID filenames. ( #4002 )
2017-09-07 11:57:12 +02:00
Alexander Harkness
e33eb529ad
Fire effect now shown for creative and spectator mode players ( #3998 )
...
* Fire effect now shown for creative and spectator mode players
Fixes #3989
* Add documentation for IsFireproof
2017-09-07 09:59:08 +01:00
Lukas Pioch
ed7adef1ca
Updated APIDoc ( #3985 )
2017-09-07 10:33:46 +02:00
Bond-009
104f9e127b
Changed some int parameters to vector parameters ( #3937 )
2017-09-07 10:25:34 +02:00
peterbell10
ef1f371dab
Add cWorld::RemoveEntity and use in cEntity ( #4003 )
...
* Add cWorld::RemoveEntity and use in cEntity
* cEntity: Remove uneeded asserts from Destroy and DoMoveToWorld
2017-09-05 15:11:35 +01:00
Lane Kolbly
028a35ef0d
Added assert to cProtocolRecognizer::GetPacketId. ( #4001 )
2017-09-04 16:58:38 +01:00
Lane Kolbly
aebfbfb8c8
GetPacketID for protocol packet IDs ( #3977 )
...
* Added GetPacketId method to protocol, implemented for all protocols.
* Moved GetPacketID methods into a single file, alpha-sorted.
* Fixed 1.12.1 HandlePacket switch statement.
* Added SendLogin to the GetPacketId framework.
* Added SpawnObject to GetPacketId framework.
* Added missing sendEntityEquipment packet ID update for 1.12.1
* Added LeashEntity packet ID change to 1.12.1
* Alphabetized packet enum, added SpawnGlobalEntity to GetPacketId framework
* Fixed clang errors
* Indented cases, expanded comment for GetPacketId
* Changed dyslexic comment.
2017-09-02 17:46:57 +01:00
LogicParrot
49c443896d
Revert "Replace ItemCallbacks with lambdas ( #3948 )"
...
This reverts commit 496c337cdf
.
2017-09-02 08:50:23 +01:00
Alexander Harkness
700bbdabf5
SetSwimState now takes into account head height
...
This affects m_IsSubmerged and IsSubmerged() for entities of all
types.
Also prevent squids from suffocating in water.
2017-09-01 14:50:02 +01:00
Alexander Harkness
765db880f9
Remove double-checking below world for burning
2017-09-01 14:50:02 +01:00
Alexander Harkness
7f2c0ef0d6
OnLogin now kicks players properly ( #3980 )
2017-09-01 15:49:35 +02:00
peterbell10
496c337cdf
Replace ItemCallbacks with lambdas ( #3948 )
2017-09-01 13:04:50 +02:00
Bond-009
00d077de1b
Drop enderchest when broken by a silk touck pick ( #3986 )
2017-08-31 17:50:07 +02:00
Tiger Wang
da0778dfaa
Merge pull request #3969 from peterbell10/cuboid
...
cCuboid: restore default copy construct and assign
2017-08-30 15:04:09 +01:00
Lane Kolbly
5d64451f74
Protocol Spawn Position Should Use LastSentPosition ( #3929 )
...
+ Added GetLastSentPos
* Fixed spawn position bug in 1.8.
2017-08-30 15:01:33 +01:00
peterbell10
84941bcc9f
Update mbedtls to 2.5.1 ( #3964 )
...
* Renaming changes:
* macro prefix "POLARSSL" -> "MBEDTLS"
* functions now prefixed with "mbedtls_"
* rename PolarSSL++ -> mbedTLS++
* rename polarssl submodule
* Use mbedtls' AES-CFB8 implementation.
* Add cSslConfig to wrap mbedtls_ssl_config
* Update cTCPLink and cBlockingSslClientSocket to use cSslConfig
* Use cSslConfig in cHTTPServer
* Use cSslConfig for cMojangAPI::SecureRequest
* CI Fixes
* Set -fomit-frame-pointer on the right target
2017-08-30 15:00:06 +01:00
Lane Kolbly
1f9788a801
Added ShouldSendRespawn parameter to ScheduleMoveToWorld ( #3979 )
2017-08-30 02:35:53 +03:00
peterbell10
fa5bf7d5cd
cUUID: Fix FromHexDigit for digits >= 'a'
2017-08-29 16:09:39 +02:00
peterbell10
1779db1201
cWorld: Add entities without holding of m_CSEntitiesToAdd
...
* Fixes deadlock when cWorld::AddEntity is called while holding chunk map CS.
2017-08-29 15:46:36 +02:00
peterbell10
96ce841417
Add TOLUA_EXPOSITION for readability
2017-08-28 14:36:23 +01:00
peterbell10
f89becc761
cCuboid: restore default copy construct and assign.
2017-08-28 13:48:10 +01:00
peterbell10
3687ef397c
Cleanup Vector3 constructors and Abs
2017-08-28 13:48:07 +01:00
Bastien ADAM
a5869b3c09
Repair the removed constructor of cCuboid cCuboid(otherCuboid)
( #3966 )
...
* Repair the removed constructor of cCuboid `cCuboid(const cCuboid & a_Cuboid) : p1(a_Cuboid.p1), p2(a_Cuboid.p2) {}`
* Update Cuboid.cpp
* Update Cuboid.h
2017-08-28 10:01:12 +01:00
satoshinm
6bc5031517
Implement Forge protocol handshake support ( #3869 )
2017-08-27 23:10:20 +02:00
peterbell10
447d929da1
Implement anvil chunk sparsing
2017-08-26 20:56:44 +02:00
mathiascode
3ebcf0fd5c
Leashes work in 1.12.1
2017-08-26 20:56:10 +02:00
Alexander Harkness
0140923c35
Fix mobs not burning in daylight when on snow ( #3961 )
...
* Fix mobs not burning in daylight when on snow
or other non-transparent partial blocks.
Fixes #3945
* Change from floor to ceil
2017-08-25 16:26:45 +01:00
Bond-009
3c8712d871
Gives all entities the default airlevel on creation ( #3942 )
...
* Guardians don't take damage on land
* Squids suffocate on land
2017-08-25 14:44:36 +01:00
mathiascode
4b84288801
Don't assert when placing beds in older versions ( #3916 )
2017-08-25 14:52:32 +02:00
peterbell10
f4f2fc7c3d
Add cUUID class ( #3871 )
2017-08-25 13:43:18 +01:00
Lane Kolbly
87c89a1727
Bed piston fix ( #3956 )
...
* Threaded world interface into ConvertBlockToPickups
* Changed how cBlockPiston::PushBlocks sets the old block to air, so that the block exists for the DropBlock call.
* Removed unused a_Digger argument.
* Removed incorrect comment
* This time actually removed a_Digger references.
2017-08-25 10:56:01 +01:00
Lukas Pioch
b55e5f5ad1
Use ref instead of pointer
2017-08-24 14:36:29 +02:00
mathiascode
02775e52c4
Minor changes ( #3909 )
2017-08-24 11:19:40 +02:00
Lane Kolbly
92ac45d27e
Added check to deactivate existing entity effects when new entity effects are added.
2017-08-24 11:19:01 +02:00
peterbell10
0854ed01a4
Fix use after move in cItemBowHandler::OnItemShoot
2017-08-24 11:17:51 +02:00
Safwat Halaby
c1b1cb87a1
Removed outdated pathfinder comment ( #3955 )
2017-08-23 22:05:33 +03:00
Lane Kolbly
af6963f40f
Added check in cEntity::TickBurning for whether the entity is planning to change worlds. ( #3943 )
2017-08-22 15:05:13 +01:00
peterbell10
cc2d719c59
Potential spawn prepare fix ( #3924 )
2017-08-22 14:34:43 +02:00
peterbell10
096cdac80d
Implement protocol level chunk sparsing ( #3864 )
2017-08-21 17:56:53 +01:00
Bond-009
ad3192d696
Award player an achievement when creating a beacon ( #3930 )
2017-08-21 15:00:49 +01:00
Bond-009
d510c977f6
Snow only generates on blocks with a block light level of 10 or less ( #3931 )
2017-08-21 15:13:18 +02:00
Bond-009
ce87b73127
Fixed build for older clang versions ( #3935 )
2017-08-21 10:40:05 +01:00
Bond-009
a262bacc9d
Give arthropods slowness IV when hit with bane of arthropods ( #3932 )
2017-08-21 10:51:26 +02:00
Pablo Beltrán
b18f6637b6
Fully implemented leashes ( #3798 )
2017-08-21 10:46:41 +02:00
Lane Kolbly
f81e6f6b6d
Changed MoveToWorld to ScheduleMoveToWorld in cPlayer::Respawn ( #3922 )
...
* Changed MoveToWorld to ScheduleMoveToWorld
- Removed empty line
2017-08-18 11:40:35 +01:00
Tiger Wang
0e10464ac5
Merge pull request #3921 from lkolbly/removeAssert
...
- Removed incorrect assert in SendRespawn
2017-08-18 11:36:01 +01:00
Tiger Wang
e7a5e29522
Merge pull request #3918 from peterbell10/GetBlockEntity
...
cChunk: Don't assume GetBlockEntity coords are valid
2017-08-18 11:33:46 +01:00
peterbell10
b8dda388e0
Represent cItem::m_Lore as an AStringVector ( #3882 )
...
* Replace cItem::m_Lore with AStringVector
* Reword deprecation warning
* Fix lua bindings
2017-08-18 11:29:54 +01:00
Lane Kolbly
8f1ddfa6c3
Changed type of FastRandom in monster drop calculation. ( #3920 )
...
* Fixed type of FastRandom in monster drop calculation.
* Distribute dropped items into stacks.
* Moved while loop outside if statement.
2017-08-18 11:23:08 +01:00
peterbell10
5e81024f89
cBeaconEntity fix no world crash
2017-08-18 11:22:22 +01:00
Tiger Wang
72d7027861
Merge pull request #3489 from cuberite/EntityOwnership
...
* Changed entity ownership model to use smart pointers
2017-08-18 11:17:56 +01:00
Bond-009
05045860c2
Sitting cats block enderchests from opening ( #3906 )
2017-08-17 16:29:43 +02:00
Lane Kolbly
1ec85a2b2c
Add cLuaWindow OnClicked Callback ( #3901 )
2017-08-17 16:27:43 +02:00
Bond-009
238f5bb338
Add support for 1.12.1 ( #3908 )
2017-08-17 16:25:53 +02:00
Lane Kolbly
7bdbfad1bb
Changed int parameters to vector parameters in cCuboid and simulators ( #3874 )
2017-08-17 15:48:38 +02:00
Lane Kolbly
4dd2af27e0
Added knockback to arrows, fixed knockback enchantment handling ( #3900 )
...
* Added knockback for arrows, fixed knockback enchantment handling.
2017-08-13 12:40:23 +01:00
Tiger Wang
fdd4b6e7c4
Merge pull request #3897 from peterbell10/PlaceSound
...
cBlockInfo: Remove/deprecate place sound
2017-08-13 12:37:37 +01:00
Lane Kolbly
62bc951474
Shortened DoIntervalsIntersect to two comparisons, made inline. ( #3883 )
...
* Shortened DoIntervalsIntersect to two comparisons, made inline.
* Applied DeMorgan's
* a_Max1 => a_Max2
* Moved DoIntervalsIntersect definition into header file.
* Moved DoesIntersect into header.
* Unindented line
2017-08-13 12:36:22 +01:00
Lukas Pioch
743a50014a
Replaced includes with forward declarations
2017-08-13 12:31:10 +01:00
Lane Kolbly
9cc48ac2a3
Removed incorrect assert in cClientHandle::SendRespawn.
2017-08-11 11:00:21 -05:00
peterbell10
0979cd8f17
cChunk: Don't assume GetBlockEntity coords are valid
2017-08-10 19:06:37 +01:00
Tiger Wang
4ef47aed62
Changed entity ownership model to use smart pointers
2017-08-07 19:24:16 +01:00
peterbell10
9472380494
cBlockInfo: Deprecate place sound
2017-08-07 09:31:36 +01:00
Lukas Pioch
07f25253a2
Removed unneeded includes ( #3902 )
2017-08-06 20:57:44 +01:00
Dan Čermák
028ed77ca9
Fixed compilation for clang 4.0 & gcc 7.1
2017-08-04 11:17:39 +02:00