Lukas Pioch
c5f590d460
Removed UTF-8 BOM ( #4033 )
2017-09-19 10:34:08 +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
peterbell10
4a0355f065
cBlockArea: use unique_ptr
2017-09-11 23:20:12 +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
Lane Kolbly
dc294cdc51
Switched player statistic store to save with UUID filenames. ( #4002 )
2017-09-07 11:57:12 +02:00
Bond-009
104f9e127b
Changed some int parameters to vector parameters ( #3937 )
2017-09-07 10:25:34 +02:00
peterbell10
447d929da1
Implement anvil chunk sparsing
2017-08-26 20:56:44 +02:00
peterbell10
f4f2fc7c3d
Add cUUID class ( #3871 )
2017-08-25 13:43:18 +01:00
mathiascode
02775e52c4
Minor changes ( #3909 )
2017-08-24 11:19:40 +02:00
Pablo Beltrán
b18f6637b6
Fully implemented leashes ( #3798 )
2017-08-21 10:46:41 +02: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
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
Lukas Pioch
743a50014a
Replaced includes with forward declarations
2017-08-13 12:31:10 +01:00
Tiger Wang
4ef47aed62
Changed entity ownership model to use smart pointers
2017-08-07 19:24:16 +01:00
Lukas Pioch
07f25253a2
Removed unneeded includes ( #3902 )
2017-08-06 20:57:44 +01: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
peterbell10
8fbb9dbf53
cParsedNBT: Improved error reporting ( #3876 )
...
* cParsedNBT: Improved error reporting
* Fix typos
2017-07-30 17:55:19 +01:00
peterbell10
a56cfd1f42
Remove smart pointer macros
2017-07-21 14:41:51 +01:00
Bond-009
6a19841121
Added basic ocelot behavior ( #3829 )
2017-07-12 12:42:02 +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
Lukas Pioch
cc3a67b9df
Load entities from old and new names
2017-06-23 18:32:51 +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
Mattes D
0dd1cd750b
BlockEntities: Support cloning self.
2017-06-16 14:11:28 +02: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
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
e35ac1bfb9
Clang 5.0 fixes
...
- Added override keyword
- Removed inherited member variables
2017-05-21 12:19:06 +02:00
Lukas Pioch
41bfb22834
Corrected brewingstand and added support for fuel
2017-05-08 06:30:54 +02:00
Lukas Pioch
fd6faedd55
NBT: Corrected firework loading
2017-03-22 14:21:48 +01:00
Mattes D
caa05e7935
Fixed minecart destruction using deallocated memory.
2016-12-15 14:57:48 +01:00
Mattes D
0870649994
Fixed TrappedChest saving. ( #3423 )
...
Vanilla uses "Chest" in NBT for trapped chests.
2016-11-07 21:16:55 +01:00
Moritz Borcherding
b268db4caa
Use cChunkDef::Height for Y coord comparison where applicable.
2016-09-27 14:32:20 +02:00
Mattes D
d2e8643607
Fixed type-casting-related warnings.
2016-08-24 22:26:53 +02:00
Mattes D
8eaa8613da
CMake: Remove needless minimum version specifications.
2016-07-18 22:11:42 +02:00
Mattes D
a781be5456
SelfTests: Moved SchematicFileSerializer test into a separate project.
2016-06-18 13:12:08 +02:00
LogicParrot
ca6ef58b1e
Bulk clearing of whitespace
2016-02-05 23:50:18 +02:00
Mathias
752d99c8b8
MCServer to Cuberite
2016-01-29 21:47:00 +02:00
bibo38
657b0ed007
Changed the format of the MobHead data to allow MobHeads working on MInecraft 1.8
...
The NBT format now carries the texture data and transmit it to the client.
See: http://minecraft.gamepedia.com/Head#Block_entity
Related to #2674
2016-01-11 17:55:32 +01:00
Mattes D
80e1eb37dd
Renamed leftover strings to Cuberite / Server, as needed.
...
Also upgraded the user setting file for MSVC to 2013.
2016-01-01 21:05:09 +01:00
worktycho
1ee61c4f23
Fix off by two error in ReadString
2015-12-18 15:53:41 +00:00
tycho
456253c651
Check for invalid tags when reading a compound tag
2015-12-18 15:20:24 +01:00
tycho
9e6161305d
Fixed String Parsing crash bug
...
Check string length against actual remaining data, not an abitary constant
2015-12-18 12:08:55 +01:00
Gargaj
d05fdbdee9
Test for correct coordinates when fishing
...
Fun fact: this was able to actually deadlock the server depending on where you were standing :)
2015-12-10 20:54:55 +01:00
Julian Laubstein
48f84cc3e9
changed mob age from char to int
2015-11-16 14:13:44 +01:00
Lukas Pioch
9749c3aac9
Implemented brewing
2015-11-03 18:00:55 +01:00
Lukas Pioch
079bb7c016
Update Loops required for JsonCPP
2015-10-26 00:16:35 +00:00
Mattes D
9da404ea2d
Fixed a race condition between chunk loader and generator.
...
When using ChunkWorx to generate multiple chunks, the server would sometimes fail an assert because it would generate a chunk even when it was successfully loaded. This was caused by chunks queued in cWorld's m_SetChunkDataQueue and thus being marked as "InQueue" although they were already loaded.
Solved by adding a new parameter to chunk coord callbacks specifying whether the operation succeeded or failed, and using that instead of the chunk presence flag to decide whether to generate or not.
2015-10-04 14:06:37 +02:00
Mattes D
82d9ac1e1c
Namechange to Cuberite
2015-09-25 10:14:17 +02:00