peterbell10
319b30eec6
Fix fishing timer ( #4217 )
...
Fixes ["Fishing Speed Too Slow"](https://forum.cuberite.org/thread-3175-post-29000.html#pid29000 ).
Interestingly, the constants @NiLSPACE points out are actually correct:
```cpp
(Random.RandInt(100, 900) - static_cast<int>(a_Player->GetEquippedItem().m_Enchantments.GetLevel(cEnchantments::enchLure) * 100))
```
100 to 900 ticks is the correct timing of 5-45 seconds. However, the timer is only updated when the floater is in the water and the server side position was actually bobbing in and out of the water. This meant the timer took ~2-3x longer than it should.
With this change the floater position is always in the water and so the timer works as expected.
2018-04-27 16:33:45 +01:00
mathiascode
02d75c5336
Removed unnecessary disconnect ( #4200 )
2018-04-27 08:59:03 +02:00
Bond-009
98d807187b
Removed duplicate code ( #4198 )
...
Should also fix dogs not despawning
2018-04-11 12:17:30 +01:00
peterbell10
4bf160d596
Update m_LastSentPosition in TeleportToCoords and DoMoveToWorld. ( #4211 )
2018-04-11 08:39:24 +01:00
Alex Sweet
a0896c63d7
Smelting Gives Experience ( #4094 )
...
* Smelting Exp
Smelting now gives experience
* Furnace.txt update
Exp rewards are entered in furnace.txt, Reward calculation is now done
is the furnaceentity class
* furnace.txt update
Changed alignment tabs to spaces
Included documentation of exp in recipe
* Updated StringToFloat
changed strtod to strtof
* Explicit Float to Int
* Reworked Smelting Rewards
* No C casts
-Adds new function to the api
-Sets reward counter to 0 in furnace constructor
* Style and exp lock removed
-Fixed style mistakes accoring to PR notes
-XP isn't locked to a single player anymore
* No Smelter API
-Removed SetLastSmelter and GetLastSmelter
-Fixed comments
-Fixed log reward amounts
2018-04-11 07:46:11 +01:00
peterbell10
1e312296cc
Fix cUUID::Variant ( #4213 )
2018-04-08 00:20:53 +02:00
mathiascode
f4a1ebd880
Properly destroy player ( #4199 )
2018-04-03 14:39:39 +01:00
Zach DeCook
7833e8112f
* Block Info: glazed terracotta and concrete hardness/solid voxel status ( #4205 )
2018-04-02 18:45:01 +01:00
mathiascode
a879778968
Broadcast playerlist removal in every world ( #4201 )
2018-04-02 18:39:54 +01:00
Bond-009
1991a5b0e6
Wolves only spawn in taiga biomes ( #4197 )
...
Ref: https://minecraft.gamepedia.com/Wolf#Spawning
2018-03-20 10:44:30 +01:00
peterbell10
4f26f653e1
Add cPluginManager::GenericCallHook ( #4027 )
...
Replace repetitive CallHook functions with a generic implementation.
Also converts some loops to range-based for.
Related to #1134
2018-03-02 10:40:48 +00:00
peterbell10
999faa9d90
cLightingThread: Faster chunk reading ( #4185 )
...
Profiled at a 10x speedup for cLightingThread::ReadChunks.
2018-02-21 10:30:48 +00:00
peterbell10
1ea36298d2
Fix cUrlClient leak ( #4125 )
...
Fixes #4040
* The TCP connection is now shutdown after OnBodyFinished
* Any open connections are closed when cNetworkSingleton::Terminate() is called.
* Removed ownership cycles in cUrlClientRequest
* Added a check to the test to ensure there are no leaks.
2018-02-20 17:08:46 +00:00
peterbell10
cf75d7b2c5
cBlockInfo: Deprecate direct access to variables. ( #4184 )
2018-02-20 10:43:28 +00:00
Bond-009
7e9695ecb0
Damage fishing rod when catching the hook on a block, then reeling it in ( #4151 )
...
Fixes #4132
2018-02-11 12:40:16 +00:00
peterbell10
d3c1c626f5
Deal with covered switches consistently ( #4161 )
...
* Fixes a number of "<function>: not all control paths return a value" warnings on MSVC.
* Introduces the UNREACHABLE global macro and uses it instead of conditionally compiled switch defaults.
* Move cNBTParseErrorCategory from FastNBT.h into FastNBT.cpp to prevent bad calls to message()
2018-02-04 23:07:12 +00:00
peterbell10
2df14a0496
cChunk and cChunkData: Use vectors for block get and set functions ( #4172 )
...
* cChunkData: Change interface to use Vector3i
* cChunk: Add Vector3i overloads for bounded block get and set functions.
2018-02-04 22:15:31 +00:00
Bond-009
d12804d4c0
Ocelots don't take fall damage ( #4171 )
2018-02-04 20:53:35 +00:00
peterbell10
f0c735e846
A player's inventory is always opened by its owner. ( #4176 )
...
Fixes #4093
Window updates are only broadcast to players in the m_OpenedBy list. Normally players are added after sending a window open packet but no packet is sent for a player's inventory. This meant broadcasts were never sent for the inventory window.
2018-01-28 17:24:59 +00:00
peterbell10
95108c134d
cClientHandle: Always call HOOK_PLAYER_RIGHT_CLICK ( #4149 )
...
Reverts the reduction in cases where the hook was called, a change which broke plugins.
2018-01-25 08:10:16 +00:00
Bond-009
d3a3c6ad2c
Removed cBlockInfo.m_IsSnowable ( #4105 )
...
* Removed cBlockInfo.m_IsSnowable
* Return IsSnowable from deprecated variable binding m_IsSnowable.
2018-01-23 21:07:06 +00:00
peterbell10
ab350d1e43
cItemGrid: Allocate storage lazily ( #4083 )
...
* cItemGrid: Allocate storage lazily
* cItemGrid: Fix spelling, Prioritary -> Priority
2018-01-21 18:45:13 +00:00
peterbell10
e88b3fa2fe
New movement system for leashed entities ( #4147 )
...
* New movement system for leashed entities
Entities are accelerated towards the leashed to entity as if by a spring.
* Mobs now pathfind close to but not directly to the leashing entity.
* Also minor comment changes
2018-01-17 21:40:58 +00:00
Bond-009
ec9e0eecf6
Calculate crit damage properly ( #4154 )
2018-01-17 21:12:24 +00:00
Bond-009
701fee334c
Prioritize hinge on the left side ( #4153 )
2018-01-17 19:15:42 +00:00
Bond-009
d11335e4f6
Add world name in logs from cWorld ( #4148 )
2018-01-16 22:04:39 +00:00
Alexander Harkness
07619d932d
Exp Orbs and Pickups are destroyed instantly by cacti. ( #4136 )
...
* Cactus detection code follows pattern set in #3996
* Pickups are now destroyed on cactus contact
* Add cactus detection and destruction to Exp Orbs
Remove checks for IsExpOrb() in cEntity::Tick()
Exp Orbs do not call super::Tick() and so this condition was
pointless.
2018-01-16 19:13:17 +00:00
Bond-009
3065a101a5
Don't burn mobs in daylight when swimming ( #4145 )
2018-01-15 22:44:48 +00:00
peterbell10
a72891fbb0
cWindow: Fix slot area priority when double click stacking. ( #4086 )
...
Fixes #4084
2018-01-15 11:35:27 +00:00
Alexander Harkness
ad22922393
Rename cEntity swim states ( #3996 )
...
* Replace cEntity:m_IsSubmerged with m_IsHeadInWater
* Replace cEntity:m_IsSwimming with m_IsInWater
* Add API documentation for new symbols
* Apply SetSwimState to all entities, not just mobs and players
* Pickups now use IsOnFire to check if they are on fire before destruction
Fixes #3987
2018-01-14 18:44:45 +00:00
9caihezi
4242431407
Rewrite cClientHandle::HandleRightClick ( #4089 )
...
* Add hand parameter to distinguish main hand/off hand.
* Add a new function cClientHandle::HandleUseItem to separate the functionality of using an item without a target block. This matches the protocol with client version >= 1.9
* Always actively update the status of a block if the placement fails (by out of reach or rejected by plugin).
* Do not call plugin callback CallHookPlayerRightClick(-1, 255, -1, -1, 0, 0, 0) when using item.
The CallHookPlayerUsingItem will still be called.
Now at most one of CallHookPlayerRightClick, CallHookPlayerUsingBlock,
CallHookPlayerUsingItem and CallHookPlayerEating will be called based on
the type of action (not including the used version of callbacks).
* Do not count using item as BlockInteractionsRate check (Using item takes time).
* Now we can open chests(etc.) when sneaking as long as the player's hand is empty.
This is what vanilla server does.
2018-01-08 13:37:10 +00:00
Alexander Harkness
2529a89835
Golden Apple Fixes ( #4130 )
...
* Do not remove food item until player has been fed
* Golden apples now ignore hunger when eating
* Removed EnchantedGoldenApple recipe, as it was removed in 1.9
Reference: https://minecraft.gamepedia.com/1.9#Items_2
* Adjust golden apple effects, as they were changed in 1.9
Reference: https://minecraft.gamepedia.com/1.9#Items_2
2018-01-06 00:39:23 +00:00
Bond-009
d7de2dccf0
Improved fishing rewards ( #4120 )
...
* Damage fishing rod after use
* Give xp to the player for catching something
* Fixed junk drops
* Implement Luck of the Sea
2018-01-05 14:32:30 +00:00
Bond-009
a2de7c2bb1
Sugar cane can be near frosted ice ( #4133 )
2018-01-05 12:49:08 +00:00
Alexander Harkness
b4aa19f329
Item durability loss now depends on the item used. ( #4123 )
...
Armour durability also no longer changes when it
is used to break blocks or attack mobs.
Fixes #4119
2018-01-05 11:28:06 +00:00
peterbell10
757231cc6e
Add the fmt library ( #4065 )
...
* Replaces AppendVPrintf with fmt::sprintf
* fmt::ArgList now used as a type safe alternative to varargs.
* Removed SIZE_T_FMT compatibility macros. fmt::sprintf is fully portable and supports %zu.
* Adds FLOG functions to log with fmt's native formatting style.
2018-01-03 17:41:16 +00:00
Zach DeCook
68fc28857f
Concrete mixing ( #4096 )
...
Adds a block handler for concrete powder and implements hardening to concrete.
Concrete powder turns into concrete when:
* It is next to water when it receives a block update
* It falls onto a water block (even with Physics SandInstantFall=1)
2018-01-03 16:33:31 +00:00
peterbell10
177273006e
cLuaState: Update Push
for entities. ( #4128 )
...
Fixes #4127
Some classes were exported but were only pushed as a cEntity
meaning exported functions were inaccessible.
This brings cLuaState::Push(cEntity *) up to date with all exported entities.
2018-01-03 11:38:00 +00:00
Bond-009
00da9006b7
Lilypads can be on top of (frosted) ice ( #4122 )
...
Fixes #4117
2017-12-27 18:47:28 +00:00
Alexander Harkness
6309c6a97f
improve rain simulation ( #4017 )
...
* Uses vanilla logic to decide which blocks rain falls through.
* Rain falls infinitely above the world, and stops at y=0.
* Entities will now be extinguished if they are under rain-blocking
blocks, and fire will now be extinguished by rain similarly.
* Create IsWeatherWetAtXYZ to identify wetness at a particular location.
* Use new code for enderman rain detection.
* Fixes issue #916
* Disable warnings for global constructors in the fire simulator.
2017-12-26 21:25:57 +00:00
Alexander Harkness
705deea205
Water bottles are drinkable potions ( #4114 )
...
Water bottles are now drinkable potions
Fixes #4111
Also update outdated mcwiki references
2017-12-26 20:27:24 +00:00
peterbell10
533c95d9e2
Protocol: Fix potion metadata parsing ( #4116 )
2017-12-26 18:51:38 +00:00
peterbell10
832b394715
Fix Travis build ( #4101 )
...
Stop using gdb on osx - was breaking the build
Add clang 3.5 build as travis now defaults to 5.0
Fix unknown-warning-option errors on AppleClang
ProtoProxy: Use nullptr
UrlClientTest: add override to callback destructor
Update jsoncpp to use nullptr
2017-12-22 18:25:46 +00:00
Alexander Lyons Harkness
a9c8ad9ce2
Fix typo in #4095 .
...
The build was being broken.
2017-12-21 16:01:24 +00:00
Mattes D
01322cb1b0
NetworkLookup: Added "virtual" keyword to overridden dtor. ( #4100 )
2017-12-21 13:31:20 +00:00
peterbell10
e0ff5f5639
cInventory: Add listener to shield slot. ( #4095 )
2017-12-21 11:55:23 +00:00
bibo38
532731e6f4
Fixed Clang 5.0 compile errors ( #4085 )
...
* Fixed Clang 5.0 compile errors
* Fixed wrong comment
* Only disable warnings in Clang 5 or higher
* Added a CMake condition for the Clang 5 no-zero-as-null-pointer-constant warning
* Now using the use_nullptr branch of the Cuberite specific SQLiteCpp fork
2017-12-21 11:36:58 +00:00
Fabian
0dd172b80f
Store Health as a float ( #4073 )
...
* Fix #4024
* Fix clang error
* Add comment
* Fix behaviour
* Save Health as float
* Changed m_Health to float
* Remove redundant static_cast
* Fix casts
2017-11-22 13:47:52 +00:00
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
peterbell10
79eb4c3aed
Implement invisibility effect
2017-08-03 15:34:38 +02:00
peterbell10
759618b035
Remove double includes part 2 ( #3890 )
2017-08-03 15:34:19 +02:00
Lukas Pioch
0397535fa7
Removed unused forward declarations ( #3888 )
2017-08-03 15:10:29 +02:00
peterbell10
2ef8a62339
Fix BSD build
2017-08-02 22:51:16 +02:00
Lukas Pioch
4691bc5a29
Removed double includes ( #3885 )
2017-08-02 19:57:20 +01:00
Lane Kolbly
dc49092ae5
Handle Teleport Confirmation Packet ( #3884 )
...
+ Added code to drop incoming client position packets until the most recent teleport was confirmed.
2017-08-02 15:46:29 +01:00
peterbell10
0d0323608d
cBlockHandler: take player by ref
2017-08-01 08:21:20 +02:00
peterbell10
8eb5672920
cWorld::SendBlockTo take player by ref
2017-08-01 08:21:20 +02:00
Lane Kolbly
10d42a2452
Consolidated food effects into EatItem, added all fish type FoodInfos. ( #3875 )
...
* Consolidated food effects into EatItem, added all fish types.
* Changed type of NumFishInfos to satisfy clang.
* Removed unused call for a_Item in EatItem
2017-07-30 18:53:21 +01:00
peterbell10
8fbb9dbf53
cParsedNBT: Improved error reporting ( #3876 )
...
* cParsedNBT: Improved error reporting
* Fix typos
2017-07-30 17:55:19 +01:00
Lane Kolbly
790e15f2e6
Added anvil enchantment handling. ( #3857 )
...
+ Added anvil enchantment handling.
2017-07-28 18:00:20 +01:00
Lane Kolbly
5402b214b3
Check for intersection between placed blocks and entities. ( #3850 )
...
* Check for intersection between placed blocks and entities.
+ Implemented GetPlacementCollisionBox, to permit custom placement collision boxes for blocks.
* Factored block-entity placement checking into another function in cPlayer.
- Removed vector min/max functions
* Use GetWorld to get the world in DoesPlacingBlocksIntersectEntity.
+ Added block height checks, allow different cEntity subclasses to decide whether they will prevent block placement.
2017-07-28 17:59:21 +01:00
Tiger Wang
eb4432bb62
Tentative fix for player-limit race condition ( #3862 )
...
* Attempts to fix #2257
Derived from d233e9843148313c71fbaba96ccff660e47b07b1
* Changed player count type to int
* Clarified certain actions
2017-07-28 17:54:40 +01:00
peterbell10
e0a44fb3bc
Handle incomplete packets in cProtocolRecognizer
2017-07-26 11:04:08 +01:00
Lane Kolbly
87af95b67c
Updated armor cover calculation. ( #3858 )
...
* Updated armor damage calculation.
+ Added lua docs, added casts from float to int.
* Changed verbage in docstring and comment.
2017-07-23 10:46:38 +01:00
Bond-009
6e8ec2fe34
Creepers explode when burned by flint and steel ( #3865 )
...
Fixed an issue where creepers didn't explode when they were burned with flint and steel
2017-07-22 22:05:09 +01:00
Mattes D
64561175ab
BlockArea: Added the GetBounds function.
2017-07-22 19:57:25 +02:00
Lane Kolbly
6a261e451d
Fixed check to see if block entity is in merge source.
2017-07-21 21:10:39 -05:00
Tiger Wang
6e749dacd3
Increment fire block iterator
...
* Resolves potential deadlock
2017-07-21 14:42:38 +01:00
peterbell10
7c687b77ee
Remove comment
2017-07-21 14:41:51 +01:00
peterbell10
502b726a7b
Simplify SizeCheck
2017-07-21 14:41:51 +01:00
peterbell10
55a5ffdf5c
Remove stricmp macro in favour of NoCaseCompare
2017-07-21 14:41:51 +01:00
peterbell10
5a5297974b
Remove alignment macros
2017-07-21 14:41:51 +01:00
peterbell10
a56cfd1f42
Remove smart pointer macros
2017-07-21 14:41:51 +01:00
Mattes D
895987a111
FastRandom: Remove discrepancy between arg and return value type. ( #3846 )
2017-07-21 12:06:21 +02:00
Bond-009
f9b56dd859
Break the cactus block when it grows next to a block. ( #3851 )
2017-07-18 15:14:52 +02:00
Lane Kolbly
93e1690253
Made cBlockHandler OnPlacedByPlayer call OnPlaced, made BlockRailHandler use NeighborChanged instead of OnNeighborChanged.
2017-07-18 15:12:55 +02:00
peterbell10
60dfaa0967
Allocate redstone component handlers upfront
2017-07-17 21:40:43 +02:00
Mattes D
167c4bf2e6
Simulators: Added area-based wakeup.
2017-07-16 10:01:19 +02:00
peterbell10
41d016cf5b
Handle middle mouse drag ( #3847 )
2017-07-13 15:43:48 +02:00
Bond-009
6a19841121
Added basic ocelot behavior ( #3829 )
2017-07-12 12:42:02 +02:00
Lane Kolbly
b61898c30c
Lua plugin cColor ( #3833 )
2017-07-12 12:30:43 +02:00
Lane Kolbly
793acd267f
Changing pickup lifetime and combining semantics, making these adjustable in the lua api. ( #3843 )
2017-07-12 12:13:27 +02:00
Lane Kolbly
647d9082b8
If entity is a player, send relmove packets.
2017-07-12 12:12:56 +02:00
peterbell10
d6ee1caf4c
Remove double delete of PrepareChunk lua callback ( #3844 )
2017-07-12 11:56:01 +02:00
Lukas Pioch
e38a2a1e8c
Send player message when clicking on advancements or green book. ( #3845 )
2017-07-12 10:11:29 +02:00
Lane Kolbly
67e4bbde0c
Made cBlockArea:cChunkReader AreaBounds inclusive on both sides. ( #3842 )
2017-07-10 11:10:06 +02:00
Pablo Beltrán
7adec790e6
Sound effect horse rejects player when taming
2017-07-10 05:47:04 +02:00
Lane Kolbly
a561886bf3
Implemented draggingitem API.
2017-07-10 05:46:04 +02:00
peterbell10
b2634bade0
cItemGrid bounds check ( #3837 )
2017-07-09 22:54:56 +02:00
peterbell10
bbf5bec817
BigFlower fixes ( #3826 )
...
* BigFlowers fixes
* Correct upper part meta
* Documented parameters to DoesIgnoreBuildCollision
2017-07-07 16:37:53 +02:00
Lukas Pioch
885d828712
Added bed entity ( #3823 )
...
* Added bed entity
* Export cBedEntity to lua
* Set color of bed through item damage value
* Added bed entity to APIDoc
* NBT: Added loading and saving
* Crafting recipes for the colored beds
2017-07-07 09:31:45 +02:00
Lane Kolbly
10a3bd9d12
Changed Lua plugins to only execute files ending in .lua ( #3831 )
2017-07-07 08:42:35 +02:00
peterbell10
d838ef7ba4
cBlockInfo static initialisation ( #3832 )
2017-07-03 18:34:27 +02:00
Pablo Beltrán
7606448b05
Fixes double right click on entities till off-hand actions gets implemented ( #3821 )
2017-07-03 09:37:38 +02:00
Bond_009
070cb0d21f
You can't use beds when there are hostile mobs nearby
2017-07-02 17:10:57 +02:00
Lane Kolbly
7c7f85117b
Added armor durability reduction when player is attacked.
2017-07-02 07:45:49 +02:00
Bond-009
b1628846d9
Fix horse taming ( #3820 )
...
* Horses rear when untamed and right-clicked with an item
2017-07-02 07:40:59 +02:00
Bond-009
cf22bc4e60
Players in creative and spectator aren't affected by cacti ( #3824 )
2017-07-02 07:39:19 +02:00
Bond_009
445abe001a
When right-clicking on a passive mob with 'his' spawn egg spawn a baby
2017-07-02 07:38:41 +02:00
Bond-009
a944ac3b06
Endermen take damage from rain
2017-06-30 23:53:23 +02:00
Bond-009
0c0bfe54bb
Spider should attack only when the light level is lower than 11 ( #3815 )
2017-06-30 10:48:06 +02:00
Bond-009
7fd3899796
Added 1.12 blocks ( #3760 )
2017-06-30 10:46:58 +02:00
peterbell10
33527067ed
Update tolua and export EffectID
2017-06-29 18:58:48 +02:00
Mattes D
399ea0bf1d
cNetwork bindings: Use ApiParamError and CheckParam(Static)Self.
2017-06-26 10:52:59 +02:00
Mattes D
e05ca49459
Moved ApiParamError into cLuaState.
2017-06-26 10:52:59 +02:00
Mattes D
f6bab71d05
Fixed memory leak in cClientHandle. ( #3794 )
2017-06-26 09:11:30 +02:00
Lukas Pioch
9c25520b69
Corrected APIDoc for cBlockArea and exported missing functions ( #3808 )
2017-06-26 09:02:06 +02:00
Lukas Pioch
beda050341
Added check if datatype is present in block area ( #3811 )
2017-06-26 08:49:52 +02:00
peterbell10
bd025e2bdb
Fix cBlockArea assertion and mis-indexing ( #3810 )
2017-06-25 11:07:16 +02:00
peterbell10
f0f001c10d
Fix cBlockArea null deref
2017-06-24 23:27:26 +02:00
Mattes D
fe42538349
cBlockArea supports block entities. ( #3795 )
2017-06-24 11:58:06 +02:00
Lukas Pioch
cc3a67b9df
Load entities from old and new names
2017-06-23 18:32:51 +02:00
Bond-009
8484d05d65
Pressure plates can be placed on fences and hoppers ( #3796 )
2017-06-22 21:11:46 +02:00
Mattes D
ea6660721b
NetworkSingleton: Fixed a throw warning in VS2017. ( #3792 )
...
Also fixed the misleading name.
2017-06-22 21:10:41 +02:00
Bond-009
0e1649a0f1
Fix shears (and vines)
...
* Shears now lose durability when breaking any block
* Leaves don't drop 2 leaves anymore when broken by shears
* Removed the chance to drop saplings or apples when leaves are broken by shears
* Vines can't be attached to ender chests, pistons and redstone repeaters
2017-06-21 08:09:03 +02:00
Mattes D
99b4c2bd09
Anvil storage: load block entities from both old and new name-styles. ( #3784 )
...
* WSSAnvil: Load the sign text from JSON, too.
2017-06-21 07:47:26 +02:00
peterbell10
fbe17a4e8a
Lighting Optimisations ( #3785 )
2017-06-20 09:28:33 +02:00
Bond-009
3d56ad01aa
Let water vaporise in the Nether by default
2017-06-20 09:28:00 +02:00
peterbell10
9201c7be7a
Generated tall flowers have flower type meta in both blocks
2017-06-19 20:18:44 +02:00
Mattes D
b0f3336533
MSVC Debug builds: Added operator new redirection to provide more info. ( #3781 )
2017-06-19 11:09:16 +02:00
Mattes D
801084c38c
LuaState: Fixed VS2017's throw warnings for destructors. ( #3779 )
2017-06-19 11:08:08 +02:00
Mattes D
7ac3b0fa0b
Removed the LeakFinder for Windows. ( #3777 )
2017-06-19 11:05:19 +02:00
Mattes D
bb020bbe78
NetworkSingleton: Fixed an object leak upon termination.
2017-06-17 07:14:20 +02:00
Mattes D
0f21bda12c
Fixed missing "override"
2017-06-16 16:20:33 +02:00
Mattes D
0dd1cd750b
BlockEntities: Support cloning self.
2017-06-16 14:11:28 +02:00
peterbell10
705132011a
Change error no data to no name
2017-06-16 14:06:27 +02:00
Mattes D
e4b60b6a26
Protocol: Do not assume anything about unknown packets. ( #3647 )
2017-06-16 14:03:13 +02:00
peterbell10
f4de38af80
Remove sign conversion
2017-06-16 07:07:02 +02:00
Mattes D
885d80ccdb
Entity: Replaced a mutexed counter with a std::atomic. ( #3773 )
2017-06-15 16:06:50 +01:00
peterbell10
035ecdc9e2
Replace evdns with getaddrinfo and getnameinfo ( #3766 )
2017-06-15 11:03:49 +02:00
mathiascode
7fa5725f3b
Added missing 1.12 packet changes
2017-06-14 21:57:59 +02:00
Mattes D
d61d6b5b96
Protocol 1.12: Fixed missing override specifier
2017-06-14 15:27:05 +02:00
dbhicks
8d5f01530d
Double tall grass drops seeds when broken by water ( #3763 )
2017-06-14 14:23:33 +02:00
Lukas Pioch
5a228fbc16
Added support for protocol 1.12 ( #3757 )
2017-06-14 11:22:51 +02:00
peterbell10
4dc72fe00b
Remove redundant heighmap code
2017-06-14 11:15:44 +02:00
peterbell10
360d8eade0
FastRandom rewrite ( #3754 )
2017-06-13 21:35:30 +02:00
Mattes D
9c08b4524c
Fix assert when clicking blocks at the top of the world.
2017-06-09 13:44:06 +02:00
Mattes D
c82facab1b
Fixed skylight going down through transparent blocks.
2017-06-09 12:17:27 +02:00
Lukas Pioch
4e0ae63ec2
Added WriteBlockEntity to 1.10 and 1.11 and fixed mob spawner
2017-06-09 12:16:44 +02:00
Mattes D
3c4e443ddc
Fixed handling Lua errors in nested callbacks ( #3755 )
2017-06-09 12:16:31 +02:00
Lukas Pioch
7922e6addb
Fixes problems with windows:
...
- Changed cPlayer:OpenWindow to accept a ref, tolua adds a nil check
- Close open lua window in destructor, to avoid dangling pointers
2017-06-05 15:14:23 +02:00
Pablo Beltrán
2b699dc749
Avoid pickups to sink into blocks and disappear ( #3739 )
...
* Avoid pickups to sink into blocks and disappear
2017-06-04 06:35:02 +02:00
worktycho
832298e7aa
Add command line argument for disabling the logfile
2017-06-03 21:40:35 +02:00
peterbell10
36be4a89f8
Fixed double chests ( #3741 )
...
Normal and trapped chests next to each other don't open a double chest window.
Slot changes in the secondary chest are broadcast.
Placing a chest in +x of another updates the original chest's metadata.
2017-06-03 21:17:53 +02:00
Pablo Beltrán
8f1e55611e
Fixed exp orb ( #3744 )
...
Fixes #3740
Fixes #2667
2017-06-03 21:10:48 +02:00
mathiascode
5f0d2b902e
New icon colors ( #3675 )
...
* New icon colors
* New Webadmin favicon
2017-06-03 18:49:02 +02:00
Mattes D
bc6e2100c1
LineBlockTracer: Fixed a math rounding error failure.
2017-05-28 20:59:37 +02:00
Mattes D
0551d78dff
Fixed tracer usage in Entity physics handling. ( #3720 )
2017-05-28 20:56:17 +02:00
peterbell10
ad4172d21c
Minor cBrewingRecipes cleanup ( #3731 )
2017-05-28 20:08:23 +02:00
peterbell10
f261a03c14
Double chest window fix ( #3735 )
2017-05-28 20:07:38 +02:00
mathiascode
de0c86a690
Broadcast mob head changes
2017-05-28 19:37:47 +02:00
Heiko Hund
a0341d561a
Add rank prefix and suffix to player name in chat ( #3730 )
...
Fixes issue #1721
2017-05-27 02:15:56 +01:00
Lukas Pioch
73a3c4e3be
Exported boat
...
- NBT: Added saving / loading of material
- Added the material in the item handler of the boat
- Drop the correct boat if destroyed
- APIDoc: Added desc and functions
2017-05-24 19:02:18 +02:00
Pablo Beltrán
84bdba345d
Off-hand/shield slot functional, save and load slot, bow + arrow functional ( #3725 )
...
Fixes #3714 .
2017-05-24 08:09:58 +02:00
peterbell10
8a890cf945
Store cChunk::m_BlockEntities in a map ( #3717 )
...
* Store block entities in a map from block index
* Cleanup ForEachBlockEntity
* Cleanup DoWithBlockEntityAt
2017-05-22 22:27:55 +02:00
Lukas Pioch
fc49ace897
Spawn eggs works again
2017-05-22 18:10:12 +02:00
Lukas Pioch
e35ac1bfb9
Clang 5.0 fixes
...
- Added override keyword
- Removed inherited member variables
2017-05-21 12:19:06 +02:00
Pablo Beltrán
758622336e
Fixed invisible chests ( #3722 )
...
Fixes #3479 , #3403 , #3696
2017-05-21 11:48:33 +02:00
Pablo Beltrán
2359611c57
Don't destroy monster when last target type is a player ( #3721 )
...
In current Cuberite version if you are pursued by monsters you just have to disconnect and connect again to get rid of them. If no other player is in your chunk monsters will get destroyed.
2017-05-21 10:29:06 +02:00
mathiascode
8cf48f7682
Allow enabling/disabling of block change limit
2017-05-19 19:51:03 +02:00
mathiascode
b02886a901
Use FastWriter instead of StyledWriter
2017-05-16 21:17:33 +02:00
peterbell10
f0a16e6d28
VarInt metadata written correctly for boats ( #3709 )
...
* Varint metadata written correctly for boats
2017-05-15 18:04:53 +02:00
Mattes D
2c3c1f1527
Tracer replacement ( #3704 )
...
* Replaced cTracer usage with cLineBlockTracer.
* Exported new cLineBlockTracer utility functions to Lua API.
2017-05-11 13:34:36 +01:00
Lukas Pioch
7c4576a025
Exported cFallingBlock and cExpOrb ( #3700 )
2017-05-09 14:24:41 +02:00
Mattes D
3d5ee3e5c7
Fixed Lua bindings for const objects.
2017-05-09 14:10:53 +02:00
Mattes D
ed1b78bcb6
BlockHandlers: vertical alignment.
2017-05-09 11:13:44 +02:00
Mattes D
473a4ae226
BlockCrops: Fixed RipeMeta off-by-one error properly.
...
Ref.: #3691
2017-05-09 11:11:06 +02:00
Lukas Pioch
5580d558a5
Added missing checks for Initialize function and updated APIDoc
2017-05-08 06:31:45 +02:00
Lukas Pioch
41bfb22834
Corrected brewingstand and added support for fuel
2017-05-08 06:30:54 +02:00
dbhicks
dffbf0b510
Adjusted RipeMeta for off by one error ( #3691 )
2017-05-06 02:41:01 +01:00
josh-parris
05c3e8bed8
Prevent infinite loop when logging fails ( #3693 )
...
Prevent infinite loop when logging fails
2017-05-05 13:02:54 +01:00
Mattes D
0de705eb99
Removed binary ToLua++ from build.
...
A local Lua executable is used instead.
2017-05-04 17:38:05 +02:00
Mattes D
187abe3f5e
Gen: Moved PiecePool into a separate file.
...
Also rewritten the PieceGenerator to use std::unique_ptr.
2017-05-04 09:49:30 +02:00
Lukas Pioch
74e6f41958
Don't return const ref params and removed functions from
...
ManualBindings.cpp
2017-05-01 11:10:21 +02:00
Bond-009
2a129b01aa
Fix fence gates ( #3683 )
...
This commit fixes an issue where a pressureplate would only open oak fence gates
2017-04-29 00:15:47 +01:00
Lukas Pioch
36dea62662
Replace double grass and large fern with placed block
2017-04-06 11:14:27 +02:00
Lukas Pioch
6c420ce557
API: Removed function GetChar ( #3664 )
2017-04-05 22:31:42 +01:00
Lukas Pioch
fb20517435
APIDoc: Documented missing functions and variables. ( #3634 )
2017-04-04 07:53:14 +02:00
Marvin Kopf
dbdcb85346
Added a nullptr check to cEntity::IsA ( #3659 )
...
Fixes #3603
2017-04-01 23:15:08 +02:00
Marvin Kopf
974c054bc9
fix endless loop in StringReplace ( #3658 )
...
* Fixed a recursive loop where the replacement would again be searched for the needle.
* Skip if the needle is empty. Find(needle) always matches if needle is empty.
2017-04-01 12:57:51 +01:00
Lukas Pioch
fd6faedd55
NBT: Corrected firework loading
2017-03-22 14:21:48 +01:00
Bond-009
9c9734282d
Fireworks can be fired from a dispenser
2017-03-22 11:35:14 +01:00
Bond-009
76c39dad0f
Added blocks that can be washed away by water ( #3637 )
2017-03-21 09:47:03 +01:00
Bond-009
e8de42fcbb
Return bowl when eating beetroot soup
2017-03-20 21:21:02 +01:00
Bond-009
ef85c2e686
Deadbushes drop sticks
2017-03-19 21:57:41 +01:00
mathiascode
4656be19b7
Removed development plugins from settings file
2017-03-19 21:54:01 +01:00
Lukas Pioch
74ee255cae
Detach player from entity / object if he is dead
2017-03-19 09:48:15 +01:00
Lukas Pioch
043a82344f
Boat spawned, remove it from player's hand
2017-03-17 19:33:18 +01:00
johnsoch
f269565e73
Fixed looping when unable to bind port ( #3621 )
...
Fixes #3593
2017-03-17 13:44:28 +01:00
Lukas Pioch
4b1bc1cc5c
Removed unnecessary check for lower and upper folder
2017-03-16 17:50:19 +01:00
willi123yao
eb7d684aad
Allow mobs to walk through dead_bush ( #3623 )
...
Fixes #3618 .
2017-03-16 08:54:14 +01:00
Pokechu22
19094e7aa6
Add 1.11 entity metadata ( #3601 )
2017-03-03 10:59:17 +01:00
Bond-009
2a630e8421
Fixed which blocks can be harvested with what type of pickaxe ( #3586 )
2017-02-26 12:13:53 +01:00
mathiascode
65ee749013
Corrected particles ( #3577 )
...
Fixes wrong IDs causing particles to become unknown to the server.
2017-02-26 01:31:08 +01:00
Bond-009
6fe863c2ad
Fixed cactus detection and zombie pigman sword ( #3584 )
...
Fixes for issues #902 and #2917
2017-02-25 19:14:08 +01:00
Mattes D
7c17f77c84
BlockCrops: Fixed comments and reformatted control flow. ( #3576 )
2017-02-25 10:54:44 +01:00
mathiascode
330d66097f
Removed a few default plugins ( #3580 )
2017-02-24 10:11:38 +01:00
Bond-009
ca3aa4ca06
Changed world_end to world_the_end #3531 ( #3538 )
2017-02-24 10:02:16 +01:00
Jacob
f59bd02e0d
Finishers now update the heightmap for tall flowers. ( #3545 )
2017-02-24 09:55:25 +01:00
Gareth Nelson
1c31cb7eec
Add support for alternate config file locations ( #3578 )
2017-02-22 14:10:32 +01:00
mathiascode
c89b20695d
Add 1.11.1/1.11.2 protocol ( #3575 )
2017-02-21 16:11:28 +01:00