Mattes D
c1a52dc9fb
ClientHandle: Fixed max block place distance check.
...
Fixes #1492
2014-11-25 21:24:25 +01:00
Mattes D
9f4562289e
Merge pull request #1604 from mc-server/GeneratorShapeRefactor
...
Generator shape refactor
2014-11-24 21:56:25 +01:00
Mattes D
e23bde503f
Merge pull request #1611 from mc-server/SpawnPrepare
...
cWorld: Rewritten spawn preparation.
2014-11-24 15:39:05 +01:00
Mattes D
3e068a01a8
Changed back capitalization.
2014-11-24 13:44:15 +01:00
Mattes D
478bbad5ed
Added TwoHeights shape generator.
...
This is a faster shape generator that can generate overhangs and has biome awareness.
2014-11-23 18:16:20 +01:00
Tiger Wang
2ae4d2a96a
Removed unnecessary #includes
2014-11-23 17:13:40 +00:00
Tiger Wang
79e5b82354
Merge remote-tracking branch 'origin/master' into c++11
...
Conflicts:
src/Noise/Noise.h
src/World.h
2014-11-23 17:12:34 +00:00
Tiger Wang
6382989ba0
Compilation fixes
2014-11-23 14:22:05 +00:00
Mattes D
9f4342434b
Noise3D generator: Enlarged averaging to avoid steep beach slopes.
2014-11-23 15:10:55 +01:00
Mattes D
e9797c6a2a
Merge remote-tracking branch 'origin/master' into GeneratorShapeRefactor
2014-11-23 12:33:04 +01:00
p-mcgowan
7a08c05787
formatting - newline at EOF inserted: Pig.cpp
2014-11-22 15:48:05 -08:00
p-mcgowan
d1b7a965d1
pigs turn into pigmen on lightning
2014-11-22 15:33:34 -08:00
Mattes D
b520f336da
cWorld: Rewritten spawn preparation.
...
It now supports pregeneration distance of any size and runs in two threads in parallel (generator / lighting).
Fixes #1597 .
2014-11-22 16:00:19 +01:00
p-mcgowan
793b1012c4
formatter error
2014-11-21 23:58:35 -08:00
p-mcgowan
635e9321c6
villagers turn into witches on lightning
2014-11-21 23:36:35 -08:00
p-mcgowan
ac2e3ede1d
villagers turn into witches when struck by lightning
2014-11-21 23:20:44 -08:00
Mattes D
a05a318cdd
cWorld: Changed generator defaults.
2014-11-20 22:51:07 +01:00
Mattes D
1ed32b825e
BiomalNoise3D generator: finished all biomes.
2014-11-20 22:48:14 +01:00
Mattes D
b7dd2dddf9
CompoGenBiomal: Fixed sealevel offset.
2014-11-20 22:45:50 +01:00
Mattes D
f3e9fa74d2
Merge pull request #1594 from mc-server/LargeOakTree
...
Large Oak Tree
2014-11-20 21:30:50 +01:00
Mattes D
1e887d1381
CompoGenBiomal: Fixed sealevel not generating properly.
2014-11-20 18:05:30 +01:00
Mattes D
76058e8183
Generators: Unified SeaLevel into a single variable.
...
It is shared between shape generators and composition generators and there's no sense in having two different values for those.
2014-11-20 15:31:03 +01:00
Mattes D
5325885ef4
Noise3D generators: Changed noise generator to InterpolNoise.
2014-11-20 14:45:20 +01:00
Mattes D
288cbf12cb
Merge remote-tracking branch 'origin/master' into GeneratorShapeRefactor
2014-11-20 10:13:10 +01:00
Mattes D
f1bddc607c
Merge pull request #1603 from mc-server/ImprovedNoise
...
Improved noise
2014-11-20 09:26:05 +01:00
Mattes D
fef4133f6d
cInterpolNoise: Implemented optimized 2D generating.
2014-11-19 16:58:27 +01:00
Mattes D
b177ff8ec5
cOctavedNoise: Removed misleading comment, fixed assert texts.
2014-11-19 16:52:56 +01:00
Mattes D
d7d4fcbdfe
cOctavedNoise: Added a forgotten comment.
2014-11-18 23:22:09 +01:00
Mattes D
c048f2bd95
Added a cInterpolNoise template for faster noise generator.
...
Used an instance of it in the Noise3D generator.
2014-11-18 23:21:57 +01:00
Howaner
8b028c5c78
Finished mob spawner implementation.
2014-11-18 15:33:41 +01:00
Howaner
42120e2ea5
Merge branch 'master' into MobSpawner
...
Conflicts:
MCServer/Plugins/Core
2014-11-18 14:56:32 +01:00
Mattes D
2467d29a4e
Moved all Noise-related files into a separate folder.
2014-11-18 12:07:08 +01:00
Mattes D
f683872f54
Refactored cRidgedNoise into a separate template.
...
This allows us to make the ridges out of any noise and to combine the cRidgedNoise with cOctavedNoise.
2014-11-18 09:49:53 +01:00
Mattes D
8c54fc0f7d
OctavedNoise: linux compilation fixes.
2014-11-18 09:23:45 +01:00
Mattes D
9ece37e8f1
Merge pull request #1598 from mc-server/SignEditor
...
Fixed a security problem with signs.
2014-11-18 08:52:48 +01:00
Mattes D
e9082263c9
Added cOctavedNoise template.
...
This allows us to use any noise generator in the combination of octaves.
2014-11-17 23:02:53 +01:00
Howaner
d7efece5f2
Use cLuaState's stack trace.
2014-11-17 18:01:56 +01:00
Mattes D
faf0ce3d7f
Fixed include path.
2014-11-17 17:13:42 +01:00
Mattes D
f9cfc36643
Added cImprovedNoise implementation.
2014-11-17 16:50:28 +01:00
Howaner
0e491273c1
Added UpdateSign() method to DeprecatedBindings.cpp
2014-11-17 14:57:24 +01:00
Mattes D
ae15c2f78e
Fixed a wrong assert in cClientHandle::SetViewDistance().
2014-11-17 12:34:14 +01:00
STRWarrior
ff036c9cef
Changed comment
...
Suggestion by xoft
2014-11-16 19:50:57 +01:00
Mattes D
95e59056a1
BiomalNoise3D: Added more biomes.
2014-11-16 19:03:00 +01:00
Howaner
277151582f
Use LastPlacedSign instead of LastPlacedBlock.
2014-11-15 22:36:31 +01:00
Howaner
09cea625fc
Renamed m_UsedViewDistance to m_CurrentViewDistance
2014-11-15 22:26:54 +01:00
Mattes D
1240e583d2
Mobs: Fixed crash with terrain too high.
2014-11-15 21:45:57 +01:00
Mattes D
564b9ad337
Generator: Fixed crash with trees too high.
2014-11-15 21:45:24 +01:00
Mattes D
b0bcd75732
Snow generator: Fixed failure at top of the world.
2014-11-15 20:24:15 +01:00
Mattes D
889aa7404d
ChunkDesc: Fixed comment about indexing.
2014-11-15 20:23:47 +01:00
Howaner
927d8d7702
Renamed m_SetViewDistance to m_RequestedViewDistance
2014-11-15 15:33:42 +01:00
Howaner
78fb789631
Fixed a security problem with signs.
2014-11-15 15:16:52 +01:00
Howaner
8c3c11d6b3
Renamed GetSettedViewDistance() to GetRequestedViewDistance()
2014-11-15 14:27:50 +01:00
Mattes D
30fa6a642c
DungeonRooms: Changed to work with the new shape generators.
2014-11-15 11:17:05 +01:00
Howaner
83d3f3347b
Use m_UsedViewDistance and m_SetViewDistance.
2014-11-14 22:53:12 +01:00
Howaner
a0e1e43fc1
Merge branch 'master' into ViewDistance
2014-11-14 22:33:54 +01:00
Mattes D
644240a0e5
Noise3D: Added jungles.
2014-11-14 22:17:11 +01:00
Mattes D
2789fafeb7
Noise3D: Added oceans.
2014-11-13 21:47:39 +01:00
Mattes D
7a3b3aeb3c
Gen refactor: Implemented CompositedHeiGen.
...
This fixes crashes in the Village generator due to the missing generator.
2014-11-13 21:28:50 +01:00
STRWarrior
5584144be2
First implementation for the LargeOakTree
2014-11-13 10:44:36 +01:00
Mattes D
c9a3cb4d3f
Fixed trailing whitespace.
2014-11-12 21:59:42 +01:00
Mattes D
5fb2526e07
Generator: Shape initial refactoring.
...
The code compiles, but several structure generators are broken, crash on start.
2014-11-12 21:24:26 +01:00
Mattes D
b525eee8e0
BiomalNoise3D: Added a few biomes.
2014-11-10 22:08:29 +01:00
STRWarrior
9a50a1fe0c
TallGrassGenerator: Fixed crash when too high
2014-11-10 21:55:13 +01:00
Mattes D
4b95f7c69a
Added BiomalNoise3D shape generator.
2014-11-10 17:00:14 +01:00
Mattes D
5993c06bd7
Noise3d Generator: Fixed unused function error.
2014-11-09 15:33:01 +01:00
Mattes D
c43391fd8c
Noise3D generator: rewritten from scratch.
...
Now it uses three 3D and one 2D perlin noises to generate the terrain, and is highly parametrizable.
2014-11-09 14:34:10 +01:00
Mattes D
136d6b5c30
Noise3D CompoGen: Fixed missing initialization.
2014-11-06 19:25:42 +01:00
Mattes D
58fe37814b
Merge branch 'master' of https://github.com/mc-server/MCServer
2014-11-06 08:55:33 +01:00
Lukas Pioch
13b20d6fe2
renamed FindAndDoWithUUID to DoWithPlayerByUUID, fixed style and comments, added description to APIDump
2014-11-05 21:57:38 +01:00
Mattes D
5dbf601824
cEvent: Changed chrono duration resolution.
2014-11-04 15:56:27 +01:00
Mattes D
0d15261601
cEvent: Changed steady_clock to system_clock.
2014-11-04 15:47:55 +01:00
Mattes D
6201b3602c
Merge branch 'master' into c++11Events
2014-11-04 15:45:08 +01:00
Mattes D
7d2b2f90b6
MinMax heigen: Reduced the number of octaves.
...
They didn't affect the terrain that much anyway.
2014-11-04 08:41:18 +01:00
Mattes D
f239a28d06
Added MinMax height generator.
...
Fixes #1578 .
2014-11-04 08:40:23 +01:00
Mattes D
c5f3663bea
Fixed a missing endline.
2014-11-03 11:48:03 +01:00
Mattes D
f5c4a6a27d
Added a (disabled) perf test for biome generators.
2014-11-03 10:36:12 +01:00
Mattes D
ca29683738
HeiGen: Moved construction to the end of file.
...
This will allow us to define generators in the cpp file instead of needing them in the header, thus speeding up compilation on changes.
2014-11-03 08:17:19 +01:00
Lukas Pioch
269d76a208
Simplified FindAndDoWithUUID, formatted line
2014-11-02 21:38:17 +01:00
Lukas Pioch
9f71a4e7ae
Added FindAndDoWithUUID
2014-11-02 21:01:23 +01:00
Mattes D
dbed5c0726
Grown biomes: fixed Linux build.
2014-11-02 16:47:56 +01:00
Mattes D
d5b6353493
Grown biomes: Unified with GrownProt biomes.
...
Also fixed a Zoom filter randomness.
2014-11-02 16:36:59 +01:00
Mattes D
d868346491
GrownProt: Added the rest of rare and M biomes.
2014-11-01 21:01:33 +01:00
Mattes D
4873890cfb
GrownProt biome gen: Added biome edges.
2014-11-01 16:37:56 +01:00
Mattes D
0dd804a591
Merge branch 'master' into GrownBiomes
2014-10-31 19:27:35 +01:00
Mattes D
2b7f34515a
cLuaState: Fixed errors on non-existent callbacks.
...
This mostly affected table-based callbacks, such as the cLineBlockTracer. If a callback didn't exist, the code would still push its arguments on the stack, breaking the next callback.
2014-10-31 19:25:45 +01:00
Mattes D
e2ffd5429c
Fixed missing CS lock in cChunkMap::WakeUpSimulatorsInArea().
2014-10-31 19:25:44 +01:00
Mattes D
13f0e93d69
GrownProt biomes: added alterations.
2014-10-31 12:52:07 +01:00
Howaner
d93acb841f
Fixed m_SentChunks list chunk removing.
2014-10-30 22:04:04 +01:00
Howaner
415c0e128e
... in this world
2014-10-30 21:38:32 +01:00
Howaner
9c7661f50f
Added a MaxViewDistance option.
2014-10-30 21:24:10 +01:00
Mattes D
8c04abf9aa
QtBiomeVisualiser: Added a prototyping int generator flavor.
...
This generator is easier to manipulate, since it doesn't require rewriting the sizes in the template parameters. On the other hand, it doesn't optimize so well, so it's a bit slower.
2014-10-30 16:24:35 +01:00
Mattes D
93f33b7d4e
Merge remote-tracking branch 'origin/master' into GrownBiomes
2014-10-30 12:50:55 +01:00
Tiger Wang
de46c2bcec
Improved redstone simulator
...
* Fixed style inconsistencies
* Used more C++11 features
* Improved speed perhaps
2014-10-29 16:02:59 +00:00
Howaner
165533c27e
Fixed 1.8 world item format reading.
2014-10-29 15:47:43 +01:00
Mattes D
f34b1291be
Grown biomes: made biomes smaller, made beaches smaller.
2014-10-29 15:28:27 +01:00
Mattes D
791f891212
Merged branch 'master' into GrownBiomes.
2014-10-28 22:29:46 +01:00
Howaner
373b139ed6
Forgotten m_SendChunksMediumPriority.empty() check.
2014-10-28 21:32:01 +01:00
Alexander Harkness
232343065f
Fixed compile (typos).
2014-10-27 22:03:11 +00:00
Alexander Harkness
dbe7c8b170
Comment alignment.
2014-10-27 21:38:00 +00:00
Alexander Harkness
a4932bbd8b
CheckBasicStyle'd
2014-10-27 21:34:02 +00:00
Alexander Harkness
b67eb2169e
Another one.#
2014-10-27 20:16:51 +00:00
Alexander Harkness
7de8757ac9
Fixed more warnings.
...
It's ugly though.
2014-10-27 20:05:34 +00:00
Alexander Harkness
59ca542c28
Another switch.
2014-10-27 19:53:16 +00:00
Alexander Harkness
0cdf262053
Fix missing biomes in enum.
2014-10-27 19:52:04 +00:00
Alexander Harkness
6e21897bc6
Fixed remaining warnings.
2014-10-27 19:49:52 +00:00
Alexander Harkness
c0a9a83abf
Actually fixed the warning.
2014-10-27 18:09:34 +00:00
Alexander Harkness
8a443c028f
Test warning fix.
2014-10-27 17:11:31 +00:00
Alexander Harkness
cbb637187e
Fixed typo.
2014-10-27 16:46:30 +00:00
Alexander Harkness
11a80b5d09
Pocess?
2014-10-27 16:46:17 +00:00
Mattes D
a068ebf3e0
cIntGen: Added a virtual destructor.
2014-10-27 09:48:57 +01:00
Mattes D
7d08d34693
Removed too advanced C++11 features.
...
We need to keep gcc 4.6 compatibility; these features were not implemented in that version yet.
2014-10-27 09:35:21 +01:00
Mattes D
7d6db6f33d
IntGen: Attempt at fixing Linux compilation.
2014-10-26 22:59:59 +01:00
Mattes D
74df4618de
BioGenGrown: Smaller biomes, add land to map center.
2014-10-26 22:56:02 +01:00
Mattes D
dcbe1717cc
Fixed a copypasta error in cIntGenAddToOcean.
2014-10-26 21:35:24 +01:00
Mattes D
dcad6d3626
Added a missing header to CMakeLists.
2014-10-26 20:12:29 +01:00
Mattes D
7e1d603080
Added new biomegen: Grown
2014-10-26 19:58:16 +01:00
Mattes D
ec8c050666
Added IsBiomeVeryCold() and IsBiomeCold() functions.
2014-10-26 18:17:04 +01:00
Mattes D
aff537e714
Added type to block type enum.
2014-10-26 10:13:43 +01:00
Tiger Wang
85c298d73e
Cleaned up simulators
2014-10-25 21:54:00 +01:00
Tiger Wang
6fbc98def2
Fixed some block checks
...
* Fixes #1330
2014-10-25 00:22:31 +01:00
Mattes D
b9777287ca
Moved the chrono include into Globals.
2014-10-24 11:01:45 +02:00
Mattes D
4b32c00f66
Added a missing chrono include.
2014-10-24 10:22:17 +02:00
Mattes D
765bf006ad
Merged branch 'master' into c++11.
2014-10-24 10:19:13 +02:00
Mattes D
2940ced832
Merge branch 'master' into c++11Events
2014-10-24 10:13:54 +02:00
Mattes D
190d34e2f7
Merge pull request #1565 from mc-server/MergedIniFile
...
Merged ini file
2014-10-24 09:13:39 +02:00
Mattes D
e272637ff5
IniFile: Removed the problematic printf-like Set function.
...
It wasn't used in any client code anyway.
2014-10-24 08:49:36 +02:00
archshift
dd86c1f4a3
OSSupport/CMakeLists.txt: fixed indentation
2014-10-23 23:49:20 -07:00
Tiger Wang
51fa6b4090
Suggestions
2014-10-23 23:58:01 +01:00
worktycho
d5dfacae87
Fixed formatstring
2014-10-23 23:23:34 +01:00
archshift
8ccb729504
Fixed potential linker errors with mingw, as it isn't MSVC and it isn't APPLE.
2014-10-23 15:03:54 -07:00
archshift
6bcc2c187a
Fix linking on OS X, which does not have librt.
2014-10-23 14:58:42 -07:00
Howaner
9af58a81d6
Use 3 priorities.
2014-10-23 21:19:43 +02:00
Mattes D
32cab75e43
IniFile: Removed an unused macro.
2014-10-23 16:07:43 +02:00
Mattes D
1235ccb1e2
Removed iniFile library from linux dependencies.
2014-10-23 15:26:43 +02:00
Mattes D
449d08cb3d
Merged IniFile into main MCS sources.
2014-10-23 15:15:10 +02:00
Howaner
72bb299a4a
Merge branch 'master' into ChunkLoader
...
Conflicts:
src/ChunkSender.cpp
src/ClientHandle.cpp
src/World.h
2014-10-23 14:59:42 +02:00
Mattes D
07bbfd5894
Fixed a crash in redstone simulator.
2014-10-23 12:51:59 +02:00
Mattes D
82472d09ac
Reimplemented cEvent using C++11 primitives.
...
Fixes #1523 .
2014-10-23 11:20:25 +02:00
Mattes D
154c329a25
Removed the "conditional expression is constant" warning.
...
MSVC spits out many of these on its own std libraries.
2014-10-23 10:58:41 +02:00
Alexander Harkness
57f822cd0e
Signs can be placed on wallsigns.
...
Fixes #1438
2014-10-23 08:07:20 +01:00
Mattes D
27687cfcd4
Added FastRandom.* back to CMakeLists.txt.
2014-10-23 08:41:57 +02:00
Mattes D
f8c54f4243
Merged branch 'master' into c++11.
2014-10-23 08:40:39 +02:00
Tiger Wang
a26541a7c3
En masse NULL -> nullptr replace
2014-10-22 20:12:49 -07:00
Mattes D
2ac3a807b7
ComposableGenerator: Removed nullptr initializers.
2014-10-22 22:58:36 +02:00
Mattes D
7ed27c6b80
LuaState: Projectiles are pushed using their full class.
2014-10-22 16:06:32 +02:00
Mattes D
b979cad893
cItemFrame: Fixed a forgotten rename.
2014-10-21 22:32:17 +02:00
Mattes D
814e4404bb
Merge pull request #1515 from mc-server/BlockFixes
...
Block fixes
2014-10-21 22:04:51 +02:00
Mattes D
a42fa071bc
Properly exported cItemFrame and cHangingEntity to Lua.
2014-10-21 22:02:30 +02:00
Mattes D
881bc66233
Fixed trailing whitespace.
2014-10-21 22:00:31 +02:00
Mattes D
0c0c762412
Exported individual projectile classes to Lua API.
...
They used to be exported, but then they were moved to separate files and those werent' added to the ToLua processing list.
2014-10-21 21:25:52 +02:00
Howaner
6f99615ceb
Merge branch 'master' into ChunkLoader
...
Conflicts:
src/World.h
2014-10-21 21:16:04 +02:00
Howaner
4fe41839cc
Reverted hook move.
2014-10-21 21:13:35 +02:00
Howaner
2d63967551
style.
2014-10-21 18:32:02 +02:00
Mattes D
bcb839d07b
Merged branch 'master' of git://github.com/sriehl/MCServer
2014-10-21 18:12:40 +02:00
Howaner
f800f3c998
Moved tall grass pickups handle.
2014-10-21 18:06:44 +02:00
Howaner
283eda3c4e
Merge branch 'master' into BlockFixes
2014-10-21 17:37:03 +02:00
Howaner
b0988e65aa
Use two lists and 2 chunk send prioritys.
2014-10-21 17:35:23 +02:00
Howaner
a07456d712
New c++11 stuff.
2014-10-21 17:00:41 +02:00
Howaner
44514e53fc
Merge branch 'master' into ChunkLoader
...
Conflicts:
src/ClientHandle.cpp
2014-10-21 16:55:22 +02:00
Alexander Harkness
d0766fcea8
Missing EOL.
2014-10-21 14:21:08 +01:00
Alexander Harkness
8299b0920f
Alignment.
2014-10-21 14:19:58 +01:00
Alexander Harkness
3e0f7c2b1c
Missing space.
2014-10-21 14:17:36 +01:00
Alexander Harkness
8ddc40e44b
Missing space fix.
2014-10-21 14:17:04 +01:00
Tiger Wang
2b920f9e21
Compile fix?
2014-10-21 13:49:53 +01:00
Tiger Wang
014ebb7fe6
Windows close handlers handles more closes
2014-10-21 13:41:08 +01:00
Tiger Wang
5089f04cf6
Replace &*[0] accesses with .data()
2014-10-21 13:20:06 +01:00
Mattes D
dc4185fb86
cLuaState: cEntity is pushed with specific type.
2014-10-21 12:43:06 +02:00
Tiger Wang
987f79afdd
En masse NULL -> nullptr replace
2014-10-20 21:55:07 +01:00
Tiger Wang
a324333c11
Use std::recusive_mutex
2014-10-20 21:26:18 +01:00
Tiger Wang
2334c8dd9d
Merge branch 'master' of https://github.com/mc-server/MCServer
2014-10-20 19:01:53 +01:00
Tiger Wang
bde99d684e
Migrated cSleep and cTimer to std::chrono
2014-10-20 18:59:40 +01:00
Julian Laubstein
48470c858b
Fixed #1550
2014-10-20 19:36:16 +02:00
Mattes D
b78078a3a6
Fixed a potential crash in cEntity bindings.
2014-10-20 17:32:09 +02:00
Julian Laubstein
4a58ce1df6
Found it!
2014-10-20 16:00:33 +02:00
Julian Laubstein
d2cc1e0cd3
Fix for fix #1552
2014-10-20 15:58:08 +02:00
Julian Laubstein
c2560cc1be
Added error message
2014-10-20 15:08:48 +02:00
Julian Laubstein
1a46feda43
Added error handling to load <plugin> command
2014-10-20 14:46:24 +02:00
Mattes D
8fbd65e775
Merge pull request #1549 from SphinxC0re/master
...
Added mechanics placeable on halfslabs
2014-10-19 19:13:48 +02:00
Mattes D
ee23fd5b9e
Removed obsolete tr1::shared_ptr.
2014-10-19 18:52:24 +02:00
Mattes D
cf73fee7e3
Fixed minor style issues.
2014-10-19 18:45:42 +02:00
Mattes D
262e6d06aa
TwoLevel BioGen: fixed swapped inside and outside biomes.
2014-10-19 16:07:29 +02:00
Julian Laubstein
3082f0d046
Fixed error with non-const function
2014-10-19 15:11:53 +02:00
Tiger Wang
aa19a3afb0
Migrated random generators to std::random
2014-10-19 14:10:18 +01:00
Julian Laubstein
403f8581cf
Added mechanics placeable on halfslabs
2014-10-19 15:01:01 +02:00
Mattes D
3ee47df118
Mountain height gen: Added ditches.
2014-10-19 14:35:49 +02:00
Mattes D
e0cfbc4d85
Generator: Rewritten to use SharedPtrs.
2014-10-19 14:01:59 +02:00
Tiger Wang
cc600de51f
Merge branch 'master' of https://github.com/mc-server/MCServer
2014-10-19 12:34:05 +01:00
Mattes D
d50bbf3899
cLuaState: cMonster descendants don't push their specific type.
...
The individual mob types aren't exported to Lua, so pushing them would crash the server.
2014-10-19 12:49:54 +02:00
Mattes D
b0a59927fb
cLuaState: cBlockEntity descendants are pushed with proper class type.
2014-10-19 12:46:25 +02:00
Mattes D
ebd31ff132
LuaState: Pushing a cEntity pushes the correct class name.
...
This makes Lua scripts easier, as they don't need to cast values from cEntity to the specific descendant.
2014-10-19 11:46:38 +02:00
Mattes D
fe153cc763
Bindings: Removed obsolete codegen files.
...
LuaState_Call.inc is no longer needed, it was replaced with variadic templates.
2014-10-19 11:32:17 +02:00
Tiger Wang
6d5a8892f3
Use std::thread
2014-10-19 00:29:34 +01:00
Tiger Wang
2874bf73be
Merge pull request #1502 from mc-server/furnaces
...
Improved furnaces
2014-10-18 21:33:55 +01:00
Tiger Wang
eb821ff240
Fixed failure for cRankManager to restart
2014-10-18 19:55:01 +01:00
Tiger Wang
6a22b63473
Furnaces now update their block entity type
...
Therefore improving cChunk's variable boundary checking.
2014-10-18 19:54:34 +01:00
Alexander Harkness
f280c36f9d
Simpler code.
2014-10-18 16:12:12 +01:00
Mattes D
687752241f
cMojangAPI: Don't update data if server is in offline mode.
2014-10-17 13:57:18 +02:00
Mattes D
803666d480
LuaChunkStay: Fixed a crash on unused callback.
2014-10-17 13:17:56 +02:00
Alexander Harkness
59902c28f2
Nullptr?
2014-10-16 20:21:33 +01:00
Mattes D
8c2a99711e
Merged branch 'fix_chunks'.
2014-10-16 21:12:26 +02:00
Alexander Harkness
818c7948b7
Fixed a number of stylistic issues.
2014-10-16 19:08:22 +01:00
Mattes D
5b9ca4a7b4
Merge pull request #1541 from mc-server/VariadicTemplates
...
cLuaState::Call() uses variadic templates
2014-10-16 18:47:11 +02:00
worktycho
25ebedbe45
Use universal references
2014-10-16 15:11:35 +01:00
STRWarrior
132a92226b
Merge branch 'master' into DungeonLoot
...
Conflicts:
src/ItemGrid.cpp
2014-10-16 11:43:59 +02:00
STRWarrior
07b5ce0c54
Changed i variable to j
...
The server wasn't going over all the items before.
2014-10-16 11:17:39 +02:00
Mattes D
799ae87d3f
BioGen: Fixed a compiler warning.
2014-10-16 11:00:30 +02:00
STRWarrior
5ed6d280ce
Reversed wrong fix for #1517 .
2014-10-16 10:26:17 +02:00
STRWarrior
3f0d4fe250
Reversed the order of the loot
...
For some reason the rare items weren't generating at all.
Added forgotten Golden Apple
2014-10-15 22:10:14 +02:00
STRWarrior
08676128b0
Added loot to dungeons.
2014-10-15 21:15:12 +02:00
STRWarrior
0bdd2768ff
Fixed possible crash
...
It could crash if MinAmount - MaxAmount was 0 because it would execute (Number % 0)
2014-10-15 19:46:43 +02:00
Mattes D
06b466471f
Merge pull request #1536 from mc-server/MineshaftBooks
...
Mineshaft books
2014-10-15 19:23:53 +02:00
Mattes D
f58d44ea50
cLuaState::Call() uses variadic templates.
...
(doesn't compile)
2014-10-15 19:18:23 +02:00
Mattes D
eeb580a74e
Functions in cPluginManager get references instead of pointers.
2014-10-15 19:09:09 +02:00
STRWarrior
4038e1cb42
Using C++11 loops
2014-10-15 18:11:28 +02:00
STRWarrior
fa6f8fb38e
The code now prevents conflicting enchantments.
2014-10-15 15:44:52 +02:00
STRWarrior
0cdd2b64ed
IntNoise1DInt result gets devided by 7 first
...
suggestion by xoft
2014-10-15 15:42:45 +02:00
STRWarrior
57f8d2a55e
Adding enchantments directly instead of first getting the name of it.
2014-10-15 15:31:06 +02:00
STRWarrior
e4ee71868e
Renamed the counter to 'j'
2014-10-15 15:25:48 +02:00
STRWarrior
ff5f57514e
Returned cFastRandom and cEnchantment:GetRandomEnchantmentFromVector to before
...
Added cEnchantment:GenerateEnchantmentFromVector that allows to get the same enchantments over and over.
2014-10-15 14:44:07 +02:00
STRWarrior
e3aa6e4857
Enchanted books generate in MineShafts chests
2014-10-15 14:08:45 +02:00
Mattes D
c6725f8d28
Usernames are lowercased before generating offline UUID.
...
This breaks previous offline UUIDs, but it guarantees that future offline UUIDs will be the same even for usernames with wrong capitalization.
2014-10-15 13:41:23 +02:00
Mattes D
7f8118e0cb
cWorld: Fixed scheduler.
...
Fixes #1534 .
Added a test case into the Debuggers plugin.
2014-10-13 14:49:18 +02:00
Mattes D
1eae7d0ece
Fixed style.
2014-10-13 10:34:33 +02:00
Mattes D
120b347fb5
CheckBasicStyle ignores the Bindings.h generated file.
2014-10-13 10:33:08 +02:00
Mattes D
53410a9271
Merge pull request #1529 from mc-server/unique_ptr
...
Moved a few objects to unique_ptr
2014-10-12 22:08:28 +02:00
worktycho
fff9e50109
Aligned simulators
2014-10-12 12:44:59 +01:00
worktycho
daadde2077
Fix style
2014-10-12 12:18:52 +01:00
worktycho
6a448be88c
Fix spaces
2014-10-12 12:17:29 +01:00
worktycho
8dfeb6e324
Update World.cpp
2014-10-12 12:15:52 +01:00
Steven Riehl
4a25760363
fix std:min call, include algorithm and compare same type
2014-10-11 21:36:40 -06:00
Steven Riehl
dfd4e15ecb
refactor an if block to std::min
2014-10-11 21:18:57 -06:00
Steven Riehl
856764dee8
convert old style casts to fix warnings
2014-10-11 20:39:55 -06:00
Alexander Harkness
6af9d5ba01
Fixed compilation.
2014-10-11 18:39:46 +01:00
Alexander Harkness
93833069a8
Merge branch 'master' into issue850
...
Conflicts:
src/BlockID.h
2014-10-11 18:32:21 +01:00
Alexander Harkness
68762747e0
Fixed typo and removed useless right side up slab meta.
2014-10-11 16:59:13 +01:00
worktycho
1a07dc897d
Fix lambda capture
2014-10-11 14:43:06 +01:00
tycho
473c0425d3
Moved a few objects to unique_ptr
2014-10-10 15:33:19 +01:00
Mattes D
a47d9e5334
Fixed MSVC compilation.
2014-10-10 09:58:54 +02:00
archshift
76b37acb42
Float/Ciel: If it's going to use C++11, it might as well take advantage of it
2014-10-09 14:57:57 -07:00
archshift
f8d1e96ae7
Use static casts instead of C casts, add floor-cast functions
2014-10-09 14:57:40 -07:00
Mattes D
f91aa6f1d3
DistortedHeightmap: Fixed crash on number rounding.
...
Fixes #1521 .
2014-10-09 12:33:42 +02:00
STRWarrior
e95ee55974
Added comments to the GetAcaciaTreeImage function
2014-10-08 21:32:09 +02:00
STRWarrior
36fa1c5c73
Using array with possible directions.
2014-10-08 21:25:59 +02:00
STRWarrior
68a54c90c9
Added AcaciaTrees for the savanna biomes
2014-10-08 20:31:16 +02:00
Howaner
97623fc634
Added distance check.
2014-10-07 21:36:01 +02:00
Howaner
7631047bb7
Leaves are harvest-able.
2014-10-07 18:24:22 +02:00
Howaner
a5e09155c0
Corrected drops from dead bush, tall grass and cobweb.
2014-10-07 18:21:39 +02:00
Howaner
e8e428a806
Corrected IsBlockAttachable() in BlockVine.h
2014-10-07 16:48:37 +02:00
Howaner
fec509935d
Removed BlockHaybale.h from CMakeLists.txt
2014-10-07 15:39:24 +02:00
Howaner
e3a69a527d
Removed unused cBlockHayBaleHandler.
2014-10-07 15:02:51 +02:00
Mattes D
2a32dd2740
Merge pull request #1513 from mc-server/MojangAPIRefresh
...
cMojangAPI: Added periodical refreshes.
2014-10-07 11:23:49 +02:00
Howaner
b493beb3bb
Stream 4 chunks per tick. Added priority.
2014-10-06 21:27:53 +02:00
Howaner
a59f2d15fb
Merge branch 'master' into ChunkLoader
2014-10-06 17:38:42 +02:00
Howaner
5a6b86180e
Better StreamNextChunk() method
2014-10-06 17:38:17 +02:00
madmaxoft
4e82a58060
Fixed crash in ForEachEntityInBox API.
...
Fixes #1511 .
2014-10-06 13:48:44 +02:00
Mattes D
3d2d8a096b
cMojangAPI: Added periodical refreshes.
2014-10-06 10:05:02 +02:00
Mattes D
89713e23e4
Merge pull request #1510 from mc-server/TimedEvent
...
Added a cEvent::Wait() with timeout.
2014-10-06 09:24:51 +02:00
worktycho
a20bd0dbbd
Update CMakeLists.txt
2014-10-05 23:44:55 +01:00
madmaxoft
c94e82980e
Fixed a missed value.
2014-10-05 22:56:56 +02:00
madmaxoft
112fac5798
Removed obsolete cMonster::eType.
...
Has been replaced with global eMonsterType.
2014-10-05 22:12:25 +02:00
madmaxoft
77c5b410e6
Fixed eMonsterType Lua API mismatch.
2014-10-05 22:09:19 +02:00
Mattes D
a8aeceab9d
cClientHandle: Added protocol version knowledge.
2014-10-05 20:19:21 +02:00
Mattes D
ec71ffcc80
Added a cEvent::Wait() with timeout.
2014-10-05 19:04:30 +02:00
win32re
f8c1da4a71
Fixes #1503 - No gravel is being generated
2014-10-04 14:02:40 +02:00
Mattes D
db98820aa9
Merge pull request #1489 from mc-server/fixes
...
Improved torch handler
2014-10-04 10:02:10 +02:00
Tiger Wang
79e9de8d67
Comment suggestions
2014-10-03 21:38:23 +01:00
Tiger Wang
b5a2c6667a
Improved furnaces
...
* Fixed progress bar on 1.8
* Fixed bugs
* Improved code
* Fixes #1068
* Fixes #1070
2014-10-03 21:32:41 +01:00
Howaner
382e014ebc
Optimized chunk loader
2014-10-02 23:50:41 +02:00
Alexander Harkness
2f945475f2
Fix spelling of PRISMRAINE
...
Fixes #1497
2014-10-02 07:22:12 +01:00
Masy98
3591edd47e
Fixed sorting
2014-10-01 19:26:36 +02:00
Masy98
d37b047ebe
Merge branch 'master' into blocks
2014-10-01 19:23:43 +02:00
Masy98
0d2a041a69
Fixed Red Sandstone and Prismarine drops
2014-10-01 19:13:59 +02:00
Mattes D
ecef85574d
Merge pull request #1493 from Masy98/blocks
...
Added missing 1.8 blocks, E_METAs and sounds
2014-10-01 18:28:07 +02:00
Masy98
1d875d0bc8
Added Daylight Sensors to the "can't push" list
2014-10-01 18:08:31 +02:00
Masy98
0f0763303e
Fixed ":"
2014-10-01 18:00:51 +02:00
Masy98
cc9e598803
Added missing 1.8 blocks, E_METAs and sounds
2014-10-01 17:57:53 +02:00
madmaxoft
4789db5c28
cRoot: Removed useless variable from Lua API.
2014-10-01 17:28:45 +02:00
madmaxoft
fd11b574bd
cPlayer: Removed useless functions from the Lua API.
2014-10-01 17:24:02 +02:00
madmaxoft
886a7d7bbb
Bindings: Fixed binding for cPlayer::PermissionMatches().
2014-10-01 12:59:31 +02:00
madmaxoft
901bed3989
Unified cRoot broadcast chat documentation.
2014-10-01 12:44:28 +02:00
madmaxoft
e65e0f1795
cClientHandle: Alpha-sorted the sending functions.
2014-10-01 12:14:38 +02:00
Mattes D
3ccda572b3
Merge pull request #1490 from mc-server/removecompact
...
Removed WSSCompact
2014-10-01 07:47:17 +02:00
Tiger Wang
9e4a5f824a
Removed WSSCompact
2014-09-30 22:20:21 +01:00
Tiger Wang
48c99dcd2e
Improved torch handler
2014-09-30 22:00:33 +01:00
Mattes D
1d185fe207
Merge pull request #1487 from mc-server/BlockFixes
...
Block fixes
2014-09-30 22:53:32 +02:00
Howaner
7d3016c7ad
Code improvements
2014-09-30 20:59:59 +02:00
Mattes D
5de27e7edf
Merge pull request #1485 from mc-server/PluginMessages
...
Rewritten plugin messages, vanilla's are being parsed directly.
2014-09-30 20:48:40 +02:00
Howaner
425df6b694
Fixed 1.8 dirt types
2014-09-30 20:31:27 +02:00
madmaxoft
e74510bddf
Fixed a missing semicolon.
2014-09-30 20:27:20 +02:00
Howaner
83973520c8
Fixed iron trapdoors
2014-09-30 20:04:49 +02:00
Howaner
5111628ba5
Fixed 1.8 doors.
2014-09-30 19:49:42 +02:00
Mattes D
1531511bbe
Merge pull request #1427 from mc-server/chestcarts
...
Implemented Chest Minecarts
2014-09-30 17:16:15 +02:00
Julian Laubstein
b77480b4ef
Indentation
2014-09-30 14:05:23 +02:00
madmaxoft
d7066f43d3
Rewritten plugin messages, vanilla are being parsed directly.
...
This should finally fix the compatibility problems between 1.7 and 1.8 protocols with the changes in the vanilla plugin messages.
2014-09-30 13:33:57 +02:00
Julian Laubstein
b2cf4004f8
Set right indentation
2014-09-30 12:45:44 +02:00
Julian Laubstein
d731ad37b1
actual solving of the halfslap+torch problem
2014-09-30 12:43:48 +02:00
madmaxoft
33dc66a4d2
RankMgr: GetAllPlayers() returns players sorted by name.
2014-09-29 22:00:14 +02:00
madmaxoft
aae90c2cf0
Style fixes.
2014-09-29 21:38:11 +02:00
madmaxoft
30b083ed63
World: Fixed chunk generation by plugins.
...
ChunkWorx was broken, it was trying to generate chunks that were not properly marked as InQueue.
2014-09-29 21:34:15 +02:00
Alexander Harkness
bdb8d916c0
Fixed codestyle again.
2014-09-29 19:45:12 +01:00
Mattes D
d3c2c02b6b
Merge pull request #1472 from mc-server/Ranks
...
Added more cRankManager functions
2014-09-29 20:39:13 +02:00
w00tc0d3
9628733df2
BlockStone.h: fix the codestyle
2014-09-29 19:19:17 +02:00
w00tc0d3
d5ae659da3
Tabs -> spaces
2014-09-29 17:35:30 +02:00
netchip
6127c21af9
BlockStone: drop the right cobblestone on onBreak().
...
Signed-off-by: netchip <w00tc0d3@outlook.com>
2014-09-29 17:18:20 +02:00
Howaner
ff3a3b801d
Renamed GetAllPlayers() to GetAllPlayerUUIDs()
2014-09-29 14:43:16 +02:00
Howaner
347402d20d
Merge branch 'master' into Ranks
2014-09-29 14:37:01 +02:00
Julian Laubstein
f014d8764b
Update BlockTorch.h
2014-09-29 13:17:24 +02:00
Julian Laubstein
0b438b5fe8
Added torches placeable on upside-down-halfslaps
2014-09-29 13:12:50 +02:00
Mattes D
666aa1df94
Merge pull request #1473 from mc-server/NewStoneGeneration
...
Added Granite, Diorite and Andesite to the NaturalPatches generator.
2014-09-29 09:33:13 +02:00
Mattes D
a245213d81
Merge pull request #1478 from doublej472/master
...
Make endermen take damage in water
2014-09-29 08:08:14 +02:00
Jonathan Frederick
c02711633d
Derp
2014-09-28 19:27:53 -07:00
Jonathan Frederick
7a61e1e604
Fix comments
2014-09-28 19:24:47 -07:00
madmaxoft
280831df26
Plugin messages: Vanilla prefixes its payloads with VarInt lengths.
2014-09-28 23:03:44 +02:00
Jonathan Frederick
126b14aa09
Make endermen take damage in water
2014-09-28 13:56:41 -07:00
madmaxoft
488c6159df
Revert "1.8: Fixed plugin messages."
...
This reverts commit 04ee8c43dd
.
2014-09-28 22:27:23 +02:00
madmaxoft
f8c627141a
Protocol 1.8: Fixed possible crash on malformed packet.
2014-09-28 22:25:48 +02:00
madmaxoft
5a44be13b7
Fixed trailing whitespace.
2014-09-28 22:17:29 +02:00
STRWarrior
7c18681e09
Fixed compilation
2014-09-28 22:10:03 +02:00
Mattes D
1422176d13
Merge pull request #1471 from mc-server/redstoneData
...
Use factory method to construct redstone simulator data
2014-09-28 22:05:05 +02:00
Mattes D
8d55cd409e
Merge pull request #1466 from mc-server/endofsupport
...
Removed protocols 1.2 to 1.6
2014-09-28 22:04:30 +02:00
STRWarrior
76e0c592ef
Added Granite, Diorite and Andesite to the NaturalPatches generator.
2014-09-28 19:27:08 +02:00
Howaner
4391b3fc09
Fixed SetDefaultRank() return value.
2014-09-28 19:08:33 +02:00
worktycho
80fe8d7789
Update Chunk.cpp
2014-09-28 17:57:01 +01:00
Tycho
f6979642e6
Use factory method to construct redstone simulator data
2014-09-28 15:36:00 +01:00
Howaner
63c53a8e23
cRankManager: Added ClearPlayerRanks()
2014-09-28 15:16:11 +02:00
Tiger Wang
a9243257e5
Compilation fix
2014-09-28 13:11:41 +01:00
Tiger Wang
ae36ba5d33
Compilation fix
2014-09-28 13:08:00 +01:00
Howaner
27331da017
Updated api documentation.
2014-09-28 11:17:36 +02:00
Howaner
2fb3eb3532
cRankManager: Added GetAllPlayers() and GetPlayerName()
2014-09-28 02:17:32 +02:00
Howaner
04ee8c43dd
1.8: Fixed plugin messages.
2014-09-27 23:22:26 +02:00
Tiger Wang
1f8ee70d55
Bug fix
2014-09-27 22:13:37 +01:00
madmaxoft
03791b1e63
Fixed another redstone crash.
2014-09-27 22:25:07 +02:00
Mattes D
a3b140cb44
Merge pull request #1465 from Masy98/blocks
...
Added barriers correctly
2014-09-27 22:01:55 +02:00
madmaxoft
113b54aefd
BioGen: TwoLevel is now fully settable in INI.
2014-09-27 22:01:47 +02:00
Masy98
79110b29db
Combined conditions
2014-09-27 21:49:03 +02:00
madmaxoft
e7de548c89
Fixed minor style issues.
2014-09-27 21:37:36 +02:00
madmaxoft
d1a72eb6de
Wrapped clang-specific pragma into an #ifdef block.
...
MSVC was complaining about an unknown pragma.
2014-09-27 21:33:50 +02:00
Masy98
fc22ba0ce8
Added barriers correctly
2014-09-27 21:07:52 +02:00
Tiger Wang
7b7225e50b
Merge remote-tracking branch 'origin/master' into endofsupport
2014-09-27 19:20:02 +01:00
Tiger Wang
7ce09a9113
Suggestions
2014-09-27 19:19:28 +01:00
Tiger Wang
d1814d2d67
Merge remote-tracking branch 'origin/master' into chestcarts
...
Conflicts:
src/Entities/Minecart.cpp
2014-09-27 18:40:00 +01:00
worktycho
cc73b70211
Update IncrementalRedstoneSimulator.inc
2014-09-27 15:24:01 +01:00
worktycho
88a07bd184
Update IncrementalRedstoneSimulator.inc
2014-09-27 15:19:32 +01:00
worktycho
20101fab99
Correct method name.
2014-09-27 15:04:08 +01:00
worktycho
94a0d04d58
Set chunk data
2014-09-27 14:49:03 +01:00
worktycho
4f8818748e
Add data accessor.
2014-09-27 14:46:50 +01:00
Tiger Wang
72c087cfd3
Dropped support for <1.7.x
2014-09-27 14:28:14 +01:00
Masy98
6dd47e783a
Added default value to switch and spruce gate to fence gate handler
2014-09-27 15:11:35 +02:00
Masy98
485bac2818
Fixed convertToPickups for fence gates
2014-09-27 14:23:58 +02:00
Masy98
30f9a4d3ab
Fixed convertToPickups for doors
2014-09-27 14:19:45 +02:00
Howaner
5e71d5299c
Fixed compile errors.
2014-09-27 00:07:17 +02:00
Howaner
033d16babb
Merge branch 'master' into MobSpawner
...
Conflicts:
src/MobSpawner.h
src/Mobs/Monster.h
2014-09-26 23:56:20 +02:00
Mattes D
305778f22f
Merge pull request #1456 from Howaner/Fixes
...
Fixed player custom names in 1.8 and added type checking to map loading
2014-09-26 23:01:22 +02:00
madmaxoft
0d83477540
Fixed UNUSED macro so that it doesn't require type knowledge.
...
Introduced new UNUSED_VAR macro that is used when type knowledge is available (for local variables).
2014-09-26 22:53:39 +02:00
Mattes D
2c5b0f2378
Merge pull request #1415 from Masy98/blocks
...
Added 1.8 Blocks and Items
2014-09-26 22:24:45 +02:00
Howaner
af997a09ca
Merge branch 'master' into Fixes
2014-09-26 22:23:36 +02:00
Tiger Wang
4e2b838a69
Merge pull request #1455 from mc-server/includes
...
Removed a few unnecessary includes
2014-09-26 19:46:43 +01:00
worktycho
02db79d725
Update Plugin.h
2014-09-26 19:00:26 +01:00
Masy98
9106a8c29b
Moved curly brace to seperate line
2014-09-26 19:45:03 +02:00
Masy98
4105be0bec
Re-added 1.8 blocks to the redstone simulator
2014-09-26 19:44:06 +02:00
Tycho
0e141923bb
Merge branch 'master' of https://github.com/mc-server/MCServer
2014-09-26 18:14:22 +01:00
Tycho
a3f940f47c
Removed more unessicary includes
2014-09-26 18:13:19 +01:00
Masy98
2feee3b316
Merge branch 'master' into blocks
...
Conflicts:
src/Items/ItemHandler.cpp
src/Simulator/IncrementalRedstoneSimulator.cpp
2014-09-26 18:32:31 +02:00
tycho
ad5d0eda9c
Fixed issue with casting
2014-09-26 17:00:34 +01:00
Howaner
d83d6456e8
Fixed players custom name in 1.8
2014-09-26 17:37:19 +02:00
Tycho
6ffb7835e7
Removed a few unnessicary includes
2014-09-26 16:26:03 +01:00
worktycho
411c69b420
Merge pull request #1419 from mc-server/redstoneTests
...
Added test mocking to IncrementalRedstoneSimulator
2014-09-26 16:04:26 +01:00
Howaner
749c6092d3
Added type checking to map loading.
2014-09-26 14:31:52 +02:00
madmaxoft
157cad9007
Improved searching for spawn.
...
Won't spawn on a small island inside ocean anymore.
2014-09-26 13:04:34 +02:00
madmaxoft
6b260f06ba
cByteBuffer: Simplified ReadPosition().
...
Also, by popular demand, added more comments to the code.
2014-09-25 23:06:21 +02:00
madmaxoft
976c6bd32b
Protocol 1.8: Fixed plugin message packet.
2014-09-25 21:33:20 +02:00
madmaxoft
0443f5d531
cByteBuffer: Fixed position reading.
2014-09-25 21:23:05 +02:00
madmaxoft
e5293706de
TwoLevel BioGen: reads params from INI file.
2014-09-25 20:47:29 +02:00
madmaxoft
8f4cc27e39
Added cByteBuffer::WriteBEUShort().
2014-09-25 20:47:29 +02:00
Mattes D
e751f4ffe3
Merge pull request #1452 from Howaner/Fixes
...
Fixes
2014-09-25 20:45:54 +02:00
madmaxoft
27187371eb
Protocol 1.8: Handling packet compression properly.
...
The compression didn't work with CommLog turned on.
2014-09-25 20:34:49 +02:00
madmaxoft
3459bc1ede
Protocol 1.8: Added checks for values presence.
...
Reported by @worktycho / Coverity.
2014-09-25 19:42:35 +02:00
Howaner
050b28741b
Comment style
2014-09-25 19:28:11 +02:00
Howaner
dd423a2467
Merge branch 'master' into Fixes
2014-09-25 19:22:46 +02:00
Howaner
060ac500fc
Fixed wrong Surrounding size
2014-09-25 19:19:30 +02:00
Howaner
7cdcf0a883
Anvil: Arrow Tile tags are a short in Vanilla
2014-09-25 19:01:44 +02:00
Tycho
b2f5ab9678
Merge branch 'master' into redstoneTests
...
Conflicts:
src/Simulator/IncrementalRedstoneSimulator.cpp
2014-09-25 17:58:12 +01:00
Howaner
12621e3800
Use the json writer to write sign texts.
...
Without this change the client disconnects if the text contains "
2014-09-25 18:49:55 +02:00
Howaner
67fe834499
Fixed dispender direction bug
2014-09-25 18:37:36 +02:00
Howaner
daf5127b28
Fixed hanging direction bugs.
2014-09-25 18:37:24 +02:00
madmaxoft
c6f78d516b
Redstone: Fixed a crash with repeaters on a chunk border.
2014-09-25 18:36:11 +02:00
madmaxoft
aeabc4ff6b
1.8 Protocol: Fixed problems with no-payload packets.
2014-09-25 18:36:10 +02:00
madmaxoft
a518a83c25
1.7 Protocol: fixed potential problems with no-payload packets.
2014-09-25 18:36:10 +02:00
madmaxoft
843f31ecba
HangingEntity: Silenced a crash.
...
Vanilla worlds sometimes contain data that this was asserting upon. Changed into a log.
2014-09-25 18:36:09 +02:00
Tycho
799c96661d
Fixed style
2014-09-25 15:45:39 +01:00
Tycho
9c459cbe50
Merge branch 'master' into redstoneTests
...
Conflicts:
src/Mobs/Monster.h
2014-09-25 15:22:08 +01:00
Howaner
32ecb121a3
derp
2014-09-24 15:30:52 +02:00
Howaner
1d588b5195
Don't create two entity lists.
2014-09-24 15:17:20 +02:00
Howaner
65077c314a
Merge branch 'master' into WorldLoader
2014-09-24 15:00:49 +02:00
madmaxoft
8d9dfc5d1a
Anvil: Wolf collar color is a byte in Vanilla.
...
Kept the old Int reading for compatibility reasons.
Ref.: #1448
2014-09-23 22:22:38 +02:00
Howaner
2832685c02
Merge branch 'master' into WorldLoader
2014-09-23 22:16:05 +02:00
madmaxoft
d04ab9b703
Fixed compiler warnings in 1.8 protocol.
2014-09-23 22:12:48 +02:00
madmaxoft
0b40ce971c
Fixed a crash in WSSAnvil.
...
Reported as #1448 .
2014-09-23 22:12:47 +02:00
Howaner
366af5067b
MCServer world compatiblity with vanilla and mcedit.
2014-09-23 19:16:17 +02:00
Howaner
4b38e077cf
Merge branch 'master' into EntityCustomName
...
Conflicts:
src/ClientHandle.cpp
src/ClientHandle.h
src/Protocol/Protocol.h
src/Protocol/Protocol125.cpp
src/Protocol/Protocol125.h
src/Protocol/Protocol17x.cpp
src/Protocol/Protocol17x.h
src/Protocol/ProtocolRecognizer.cpp
src/Protocol/ProtocolRecognizer.h
src/World.cpp
src/World.h
2014-09-23 14:39:49 +02:00
archshift
5f6bac2091
Made ExpBottleEntity break on entities.
...
Fixes #1369
2014-09-23 00:28:12 -07:00
Chris Darnell
806871b86f
A few compiler warning fixes
2014-09-22 18:23:56 -04:00
Howaner
1aa64f32e1
Updated README.md
2014-09-22 22:07:58 +02:00
Howaner
fc11818f4c
Hotfixed 1.8 item reading.
2014-09-22 22:06:08 +02:00
Alexander Harkness
5f823fd18d
Merge pull request #1398 from mc-server/1.8-Protocol
...
1.8 Protocol Update
2014-09-22 20:45:22 +01:00
Howaner
9cddffb6df
Changed metadata reading again.
2014-09-22 21:18:13 +02:00
Howaner
bcb11078e3
Fixed item nbt reading.
2014-09-22 17:15:08 +02:00
Chris Darnell
195b646aa4
Made it compile with clang
2014-09-22 03:22:36 -04:00
Tiger Wang
cb70925077
Fix crash in cLineBlockTracer
...
* Fixes #1418
2014-09-21 19:24:45 +01:00
madmaxoft
3676a84916
Fixed cParsedNBT::FindTagByPath().
...
There was an off-by-one error in the name handling.
2014-09-20 23:01:42 +02:00
Howaner
718eb227ab
Implemented mob spawner.
2014-09-19 23:00:54 +02:00
Howaner
09ca7d144a
Merge branch 'master' into MobSpawner
2014-09-19 17:33:22 +02:00
Howaner
6aa331a4fa
Code improvements.
2014-09-19 15:07:01 +02:00
Howaner
4398156b2e
Merge branch 'master' into 1.8-Protocol
2014-09-19 14:31:18 +02:00
Howaner
52c875531e
Derp
2014-09-18 18:51:36 +02:00
Howaner
43ed690520
Exported player list states to extra functions.
2014-09-18 18:50:17 +02:00
Howaner
be6d4a5912
1.8: Simplified item metadata reading.
2014-09-18 16:04:03 +02:00
madmaxoft
95af3eb526
Fixed minor style issues.
2014-09-17 23:32:14 +02:00
madmaxoft
6f5aa487ed
Voronoi biomegen: Added JitterSize and OddRowOffset.
2014-09-17 23:24:22 +02:00
Mattes D
0625556c37
Merge pull request #1437 from nesco/master
...
Implemented spectator gamemode.
2014-09-17 21:30:11 +02:00
nesco
bf85c0b0ab
Implementing Spectator Mode
...
Adding some proprieties of the spectator game mode in player.cpp :
- Players can't toss items
- Players can't touch the ground
2014-09-17 21:17:06 +02:00
madmaxoft
16e9deba8d
Added an explicit setting for allowing BungeeCord handshake.
2014-09-17 20:56:33 +02:00
Tycho
045d54e0e2
Merge branch 'master' into redstoneTests
...
Conflicts:
src/Blocks/ChunkInterface.h
2014-09-17 18:47:33 +01:00
Tycho
6e7c0e33b5
Added first test to show the object can be created
2014-09-17 18:40:10 +01:00
Howaner
3ee211bbba
Use xofts ReadPosition() code.
2014-09-17 17:53:42 +02:00
Howaner
3d94a7ea56
Created MobSpawnerEntity class.
2014-09-17 17:45:13 +02:00
nesco
b70e09bc90
Update World.h
2014-09-17 17:32:37 +02:00
nesco
c63e14b6d1
Preparing 1.8 update
2014-09-17 17:15:47 +02:00
madmaxoft
010879e43f
BungeeCord compatibility: don't overwrite UUID / properties.
2014-09-17 16:01:14 +02:00
madmaxoft
82317709f8
Full BungeeCord compatibility.
...
Fixes #1392 .
Fixes SpigotMC/BungeeCord#1211 .
2014-09-17 11:07:42 +02:00
madmaxoft
3406957f1b
Initial BungeeCord support.
...
Ref.: #1392
2014-09-17 09:38:06 +02:00
Tycho
26a4845a99
IncrementalRedstoneSimulator now has no dependencies on cChunk
2014-09-16 20:29:31 +01:00
nesco
89c9aec5da
Preparing 1.8 update
...
Partially added Spectator gamemode
2014-09-16 20:17:35 +02:00
nesco
f246faec16
Preparing 1.8 update
...
Added Spectator gamemode
2014-09-16 20:05:55 +02:00
nesco
120b23d65e
Pre 1.8 release
...
Added Spectator gamemode
2014-09-16 20:04:17 +02:00
nesco
8dedbe4db5
Preparing 1.8 changes
...
Added Spectator Gamemode
2014-09-16 20:02:27 +02:00
nesco
be7483f26b
Pre 1.8 release
...
Added Gamemode Spectator
2014-09-16 20:01:04 +02:00
madmaxoft
96f45a48d4
VoronoiMap: Added Jitter and OddRowOffset params.
2014-09-15 22:34:33 +02:00
Howaner
63142a7eb1
Simplified WriteUUID()
2014-09-14 20:08:18 +02:00
Howaner
382a42b3d6
Fixed warnings.
2014-09-14 14:24:28 +02:00
Howaner
92e7e5c615
Merge branch 'master' into 1.8-Protocol
2014-09-14 14:16:17 +02:00
Mattes D
c4a53c5d7d
OSSupport: Fixed UNICODE Windows builds.
...
The files now compile even inside UNICODE applications.
2014-09-14 01:33:05 +02:00
Tiger Wang
fdabfd77e2
Improved cBlockHandler::DropBlock
2014-09-13 22:49:27 +01:00
Tiger Wang
52d86728e6
Entities experience water resistance
2014-09-13 22:49:05 +01:00
Howaner
94d562502d
1.8: Updated scoreboard packets.
2014-09-13 21:48:16 +02:00
Howaner
f323955099
Moved chat json creating to the CompositeChat class.
2014-09-13 20:27:10 +02:00
Mattes D
5b63a7fe98
Merge pull request #1353 from mc-server/Effects
...
Added speed entity effect.
2014-09-13 17:05:59 +02:00
Tiger Wang
bc37b895bc
e.t.c. -> etc.
...
etcetera, not egg tray conglomerate :P
2014-09-13 11:15:16 +01:00
Tiger Wang
a8c7dadfd7
Added newlines
2014-09-13 11:14:17 +01:00
Howaner
b462416e1f
1.8: Fixed maps.
2014-09-13 02:20:04 +02:00
Howaner
69afc4dbba
Merge branch 'master' into 1.8-Protocol
...
Conflicts:
src/Items/ItemHoe.h
2014-09-13 01:21:43 +02:00
Tiger Wang
3e74113427
Implemented Chest Minecarts
2014-09-12 23:18:02 +01:00
Tiger Wang
4019847857
Fixed friction being applied whilst airborne
...
Reported by tonibm9 in #1300 .
2014-09-12 20:50:24 +01:00
Howaner
d5306f265b
Only drop flint or gravel, not both.
2014-09-12 19:38:00 +02:00
Howaner
96e03fc3ea
Added extra mushroom handler.
2014-09-12 19:34:19 +02:00
Howaner
1223a24d3c
Merge branch 'master' into Effects
2014-09-12 19:13:46 +02:00
Howaner
fcf558173e
Fixed farmland issues.
2014-09-12 19:07:20 +02:00
Howaner
80b0631c43
Only place farmland if no block is upper than dirt/grass.
2014-09-12 18:21:11 +02:00
Howaner
a40eb93c33
Added hoe interact sound.
2014-09-12 18:15:49 +02:00
Howaner
20f3757d54
Play placesound from the middle of the block.
2014-09-12 18:14:32 +02:00
Howaner
010ac1e5f7
Fixed block place sounds.
2014-09-12 18:12:42 +02:00
Masy98
5cf114da39
Added Sea Lantern drops
2014-09-12 17:01:03 +02:00
Masy98
7f42ba9fc1
Fixed 1.8 Item stacking and block harvesting
2014-09-12 16:48:37 +02:00
Howaner
d07ef85ee3
Spawn exp if you break a mob spawner.
2014-09-12 16:41:23 +02:00
Howaner
3f000deb3b
Disabled mobspawner itemdrop.
2014-09-12 15:59:46 +02:00
Howaner
a1716bb415
Players in survival mode are not allowed to break a bedrock.
2014-09-12 15:57:37 +02:00
Howaner
fb68382d9b
Merge branch 'master' into 1.8-Protocol
2014-09-12 14:09:07 +02:00
Howaner
abcae75992
Fixed iron ore drop.
2014-09-12 14:08:56 +02:00
Howaner
009d9bbe46
Merge branch 'master' into 1.8-Protocol
2014-09-12 13:49:23 +02:00
Howaner
1849e620fc
Added flint drop and fence gate meta reset.
2014-09-12 13:49:08 +02:00
Howaner
bee615b75b
Merge branch 'master' into 1.8-Protocol
2014-09-12 13:28:06 +02:00
Howaner
f2c5d8a761
Fixed many right click issues.
2014-09-12 13:19:33 +02:00
Howaner
0d34fc9f31
Fixed wrong buffer length in the 1.8 protocol.
2014-09-12 13:01:23 +02:00
Howaner
34bcd3dd58
1.8: Fixed ReadItem()
2014-09-12 02:42:04 +02:00
Howaner
eb19eff5ac
1.8: Added difficulty sending
2014-09-12 02:00:28 +02:00
Howaner
8151c79a87
1.8: Fixed block entities.
2014-09-12 01:44:20 +02:00
Howaner
4e2d75bde5
1.8: Fixed eating.
2014-09-12 01:37:19 +02:00
Howaner
85ec697d32
1.8: Fixed workbench, enchanting and anvil window.
2014-09-12 01:15:21 +02:00
Howaner
e10237fb4d
1.8: Enderman, byte -> short
2014-09-12 00:41:07 +02:00
Howaner
a02d96d1f5
1.8: Fixed enderman spawning.
2014-09-12 00:36:46 +02:00
Howaner
c7044fa1dd
1.8: Fixed inventory open packet.
2014-09-11 23:17:27 +02:00
Howaner
6d5a5eb665
Removed GetProtocolVersion() from the protocols.
2014-09-11 22:27:35 +02:00
Howaner
d815aeaefd
1.8: Fixed sign placing.
2014-09-11 22:21:53 +02:00
Howaner
c45bf7cf55
1.8: Fixed hangings.
2014-09-11 20:06:28 +02:00
Tycho
b87585977f
Don't include IncrementalRedsonteSimulator.inc when in SELF_TEST mode
2014-09-11 17:57:34 +01:00
Tycho
0b044e1c83
Possibly decoupled IncrementalRedstoneSimulator from the rest of the server
...
THis wil hopefully allow for unit testing
2014-09-11 17:48:21 +01:00
Howaner
3bd3ac2200
1.8: Added ParticleEffect packet.
2014-09-11 17:03:09 +02:00
Masy98
d4641576c0
Added new doors in ItemDoor.h
2014-09-11 16:33:52 +02:00
Masy98
a01994389d
Fixed mutton name in Sheep.cpp
2014-09-11 16:24:16 +02:00
Masy98
b185e7f4e6
Fixed mutton name in ItemHandler
2014-09-11 16:11:03 +02:00
Masy98
741791ecfc
Added barrier block
2014-09-11 16:07:54 +02:00
Masy98
8c3cd18cdd
Added 1.8 food to the food list
2014-09-11 15:57:36 +02:00
Masy98
5f2e850b0f
Added blocks to the fire simulator
2014-09-11 15:48:26 +02:00
Masy98
e34767b265
Fixed incorrect handlers
2014-09-11 15:39:37 +02:00
Mattes D
9fd5df26d0
Fixed a redstone sim failure with droppers.
2014-09-11 10:28:48 +02:00
Masy98
214cc0f15d
Added stone slab in BlockSlab.h
2014-09-10 21:50:46 +02:00
Masy98
c0e86e7360
Fixed typo
2014-09-10 21:47:15 +02:00
Masy98
a9b4b60c80
Added new blocks to the BlockInfo
2014-09-10 21:44:04 +02:00
Masy98
f173cfe430
Added new blocks to the BlockHandler
2014-09-10 21:15:06 +02:00
Masy98
074dcbf950
Added iron trapdoor, fence gates and doors to the redstone simulator
2014-09-10 21:07:37 +02:00
Masy98
c967633d0a
Added 1.8 Blocks and Items
2014-09-10 21:02:15 +02:00
Alexander Harkness
32002694b0
Grammar fixes.
2014-09-10 18:47:59 +01:00
Tycho
27be179939
Added abilty to set build info
...
build info is displayed at startup
Fixes #1410
2014-09-10 16:07:00 +01:00
Mattes D
76d5aa1d51
Merge pull request #1402 from Masy98/Sounds
...
Moved sound-configs into BlockID.h and fixed/ added loads of sounds
2014-09-10 08:36:33 +02:00
Masy98
65e6b1e50e
Removed old sound-configuration for SignPosts
2014-09-09 20:10:37 +02:00
Masy98
a171a6ce93
Removed old sound-configuration for Repeaters
2014-09-09 19:50:35 +02:00
Masy98
27edb7f0d0
Removed old sound-configuration for Trapdoors
2014-09-09 19:37:07 +02:00
Howaner
71c3369e08
1.8: Added MultiBlockChange packet.
2014-09-09 18:27:31 +02:00
Masy98
6cc4ac0bca
Removed old sound-configuration for doors
2014-09-09 16:28:08 +02:00
Masy98
acae3c9c65
Moved sound-configs into BlockID.h and fixed/ added loads of sounds
2014-09-09 16:00:26 +02:00
Mattes D
feb408424c
Merge pull request #1399 from mc-server/warnings
...
Warnings
2014-09-09 14:32:58 +02:00
worktycho
1f0b6eeaf3
Actually set default
2014-09-09 12:18:20 +01:00
Howaner
f94df06b66
Added the player list to the 1.8 protocol.
2014-09-09 03:02:25 +02:00
Howaner
6fb0a76b1e
Merge branch 'master' into 1.8-Protocol
2014-09-09 01:55:21 +02:00
Howaner
d1d4f2146e
PlayerSpawn packet: Send the correct uuid.
2014-09-09 01:54:40 +02:00
Howaner
4b1f4e8d7e
1.8: Added new uuid field.
2014-09-09 01:52:51 +02:00
worktycho
bd810b80a6
use the correct ASSERT
2014-09-08 21:31:47 +01:00
Tycho
fb20c2eb85
FIxed a couple more warnings
2014-09-08 19:15:29 +01:00
Howaner
76fa3a7ccd
More fixes.
2014-09-08 20:12:43 +02:00
Tycho
2c945c8818
TimeOfDay does not need to be an Int64
2014-09-08 19:07:45 +01:00
Tycho
4bdf9256f2
Fixed a few compile warnings
2014-09-08 18:56:27 +01:00
Howaner
e740739d04
Recoded cProtocol180 class.
2014-09-08 19:24:33 +02:00
worktycho
64071aeda9
capitalisation error
2014-09-08 17:45:23 +01:00
Howaner
fa2b69b3f3
1.8: Fixed tab complete.
2014-09-08 17:08:28 +02:00
Howaner
8f8693a71e
Fixed more 1.8 packets.
2014-09-08 17:02:54 +02:00
worktycho
4613fabd45
derp
2014-09-08 15:15:31 +01:00
worktycho
5f207c8bb7
If server fails init, save any changed or generated settings.
2014-09-08 14:57:58 +01:00
Howaner
38124bcce3
Updated chunk sending to 1.8
2014-09-08 12:24:06 +02:00
Howaner
10a30a03e3
Added GetProtocolVersion() to cProtocol.
2014-09-08 11:35:21 +02:00
Howaner
09ff17b71e
Implemented packet compression.
...
ChunkData packet needs this.
2014-09-08 00:36:30 +02:00
Mattes D
c5cd75fae8
Exported cClientHandle:GetIPString() to Lua API.
2014-09-07 22:35:22 +02:00
Mattes D
d2c1518145
Webadmin: Added default ports to auto-generated ini file.
...
Fixes #1382 .
2014-09-07 19:45:15 +02:00
Mattes D
a0feff2734
WebAdmin: Added HTTPS instructions when cert / key is missing.
2014-09-07 19:42:35 +02:00
Mattes D
e1a9a6291b
Removed chunk's unused Y coord.
...
This fixes the second issue of #1313 .
2014-09-06 19:01:30 +02:00
Mattes D
0a651b9fd8
Added Y-wise asserts to signs.
...
This should help detect #1313 's second case.
2014-09-06 18:59:17 +02:00
Mattes D
868723ce50
Alpha-sorted protocol 1.7 senders.
2014-09-06 18:57:57 +02:00
Mattes D
9e1f67932b
Fixed player spawning in unknown world.
...
This may happen if the admin removes a world.
2014-09-06 15:26:20 +02:00
Mattes D
9f9302f470
Anvil: Fixed an off-by-one error in the loader.
...
Fixes #1307 .
2014-09-06 13:32:16 +02:00
Mattes D
dd0aa22d2e
Fixed scoreboard loader type checks.
...
Fixes scoreboard loading error reported on the Dropper map in #1307 .
2014-09-06 13:11:08 +02:00
Mattes D
b1cc1451d4
Merge pull request #1361 from mc-server/WebAdmin
...
Webadmin improvements
2014-09-06 11:12:18 +02:00
Alexander Harkness
15d4e543b1
Xoft fixes.
2014-09-06 09:56:22 +01:00
Mattes D
103fa8812d
WorldStorage no longer queues chunks into generator.
2014-09-05 23:26:00 +02:00
Mattes D
4230eb3d92
Fixed loading empty chunks.
...
Reported on the Dropper map in #1307 .
2014-09-05 22:55:39 +02:00
Mattes D
137b021d26
Rewritten chunk status to specify whether the chunk is in queue.
...
This fixes #1370 .
2014-09-05 22:16:48 +02:00
Mattes D
e15b8600a6
BiomeMultiCache is not used for simple generators.
2014-09-05 22:08:00 +02:00
Mattes D
60e235362c
Fixed style.
2014-09-05 22:07:13 +02:00
Mattes D
6444bc25ba
Fixed security: Player cannot spawn in a disabled world.
2014-09-05 16:55:16 +02:00
Mattes D
254c8c9154
Anvil: Fixed loading block entities with invalid Y coord.
2014-09-05 16:40:03 +03:00
Mattes D
e9dda864ea
Merge pull request #1375 from mc-server/EntitiesInBox
...
Implemented ForEachEntityInBox
2014-09-04 22:25:19 +02:00
Howaner
da28c70def
Fixed client errors.
2014-09-04 19:03:21 +02:00