Mattes D
82d9ac1e1c
Namechange to Cuberite
2015-09-25 10:14:17 +02:00
tycho
b4f934b808
fixed cast
2015-09-24 15:54:32 +01:00
tycho
6e86d20f73
Add new "ForEach" function: ForEachLoadedChunk.
2015-09-24 15:54:32 +01:00
electromatter
a24cc01843
Merge branch 'master' into master
2015-09-21 22:44:34 -04:00
tycho
fd7b87741a
Refactored cProtocol Chat handling
2015-09-21 12:32:56 +01:00
tycho
3c5ba56aba
Ignore Sigpipe
2015-09-19 21:37:07 +02:00
tycho
a0519a487a
Fixed wrong assumtion regarding RemoveClient
...
Remove client can be called with a client that is not present in the chunk
2015-09-19 19:34:20 +01:00
tycho
49724cd427
Fixed erase
2015-09-19 00:32:08 +01:00
tycho
dd168b0e8b
Removed a significant performance issue.
...
Iterating through the list of clients in chunks was taking up a significant
amount of time with larger numbers of clients due to processor stalls.
Changing the data structure to a vector fixed the issue.
2015-09-18 16:27:32 +01:00
Mattes D
9871c0b073
Added CircleCI for stylechecking.
...
This will allow us to remove the stylecheck from Travis builds, making them a bit faster, and having fast style checks
2015-09-17 11:20:10 +02:00
tycho
3187dbf0aa
Increase robustness of the logging subsystem
2015-09-15 16:19:49 +01:00
David Erbelding
d0fd51ea9d
Fixed flint drop rates from 1/30 to 1/10 to match the wiki.
2015-09-13 23:18:21 -04:00
Mattes D
76d2f85b9a
Fixed Lua output folders for Windows builds.
...
Fixes #2468 .
2015-09-08 09:12:02 +02:00
Eric Chai
1ef6bd8169
added bungeecord support for protocol18x
2015-09-06 09:58:18 -04:00
Mattes D
dac97826f7
Renamed output directory to Server
2015-09-05 22:01:21 +02:00
Tiger Wang
511334c500
Fixes #2485
2015-09-02 21:11:25 +01:00
Matti Hanninen
c3d84a24a9
Include signal.h jointly for POSIX systems
...
Otherwise, for example, FreeBSD the build fails due to SIGKILL not being
around.
2015-08-27 08:15:08 +03:00
Tiger Wang
3b8dc45dc3
Merge pull request #2446 from cuberite/asyncpathfinder
...
Fixed a position bug in the pathfinder
2015-08-26 23:13:13 +01:00
Tiger Wang
dfc0f2ae00
Small fix for cEvent
...
Don't bother using atomics since a synchronisation primitive is already
being used.
2015-08-26 23:02:45 +01:00
Mattes D
69a44b2fee
Merge pull request #2450 from nicodinh/patch-1
...
Fixed false-positive error message in cRankManager::SetRankVisuals().
2015-08-25 10:04:25 +02:00
AZARI Nicolas
f0fcd022a6
Update cRankManager::SetRankVisuals
2015-08-25 09:15:54 +02:00
Theo Tosini
92b1a3440d
Fix clang compile error
...
Clang would previously fail on debug builds due to the use of an old-style cast.
2015-08-23 23:11:08 -04:00
Tiger Wang
e254a76884
Removed unused function
...
* Fixes #2444
2015-08-22 19:35:56 +01:00
Tiger Wang
baf3a07804
Fixed a position bug in the pathfinder
2015-08-22 17:06:08 +01:00
Tiger Wang
3e0af6ca36
Cast UINT to WORD to appease warning
...
* Additional minor cleanups
2015-08-22 14:21:25 +01:00
Tiger Wang
f52a769761
Merge pull request #2427 from cuberite/fixes
...
Fixed and improved restarting
2015-08-22 13:07:34 +01:00
Matti Hänninen
12fb95ba2f
Namespace qualify std::abs, use explicit cast
...
Without 'std' namespace qualification Clang (at least Apple Clang 6.1)
seems to resolve 'abs' to the 'abs' function in 'cstdlib'. This in turn
triggers the 'absolute-value' warning which in turn is promoted to
error.
Implicit casts trigger 'old-style-cast' warnings which are promoted to
errors.
2015-08-22 00:36:29 +03:00
Tiger Wang
a341419b04
Merge pull request #2380 from cuberite/travis
...
Use container-based infrastructure
2015-08-20 17:18:08 +01:00
Tiger Wang
de2cce9b79
Fixed food drain bugs
2015-08-20 16:26:42 +01:00
Tiger Wang
5751ba0c1c
Use container-based infrastructure for Travis
2015-08-20 16:15:55 +01:00
Tiger Wang
4315a11393
Fixed and improved restarting
...
Restarts are now an actual, close-as-possible to application
exit+reopen.
2015-08-20 16:15:23 +01:00
Samuel Barney
cc83c4641d
* Logic for handling plant growth has been centralized into cBlockPlant, and all growable plants now inherit from it.
...
* Blocks now have an effect upon plant growth, just like in vanilla.
2015-08-19 10:48:21 -06:00
Julian Laubstein
dd5201c29e
Some warning fixes
2015-08-18 08:49:00 +02:00
Matti Hänninen
b20294604c
Fix old style casts and implicit conversions
2015-08-12 16:51:38 +03:00
Mattes D
92ac33e923
Checked LeakFinder in MSVC2015, enabled support for it.
2015-08-10 13:54:19 +02:00
Mattes D
bfc698f0ed
MSVC: Ignore the deprecation warning in 3rd party StackWalker.
2015-08-09 09:23:12 +02:00
Mattes D
a985949cfe
Flush log file when a warning or error message is output.
...
Fixes #2419 .
2015-08-08 10:40:40 +02:00
Samuel Barney
4996e53bf5
Refactored code to use cLuaState
...
Fixes #2377 .
2015-08-07 21:17:21 +02:00
Nicholas W
fbbf27feea
Fixed Iron Door
2015-08-01 08:47:55 -05:00
Mattes D
6e4122e551
Unified the doxy-comment format.
2015-07-31 16:49:10 +02:00
Mattes D
d2a0c85764
Chunks that fail to load are offloaded to extra files.
...
Ref.: #1970
2015-07-31 08:49:23 +02:00
Mattes D
08aa3f6ff5
Added reason parameter to load failures.
2015-07-31 08:48:23 +02:00
Mattes D
7379848ae5
Moved AString reading hack to cFile.
2015-07-31 08:48:22 +02:00
Samuel Barney
804805d35a
Silenced and fixed many warning messages across multiple files.
2015-07-29 09:49:30 -06:00
Mattes D
5dbe1e7303
Merge pull request #2376 from mjhanninen/fix-freebsd-build
...
Fix FreeBSD build
2015-07-29 15:36:57 +02:00
Mattes D
97beb2a350
Fixed custom recipes result clientside bug.
...
Fixes #2345 .
2015-07-26 13:30:25 +02:00
Mattes D
c74d856b57
Fixed cNetworkSingleton's HasTerminated flag.
...
Should fix random failures in Google-test.
2015-07-23 16:15:21 +02:00
Matti Hänninen
6836bf6576
Fix FreeBSD build broken by strict compiler check
...
Downgrade tautological-compare to warning to let the build pass on
FreeBSD 10.0. Note that I wasn't able to reproduce the problem on OS X
Clang; probably due to Clang version differences.
2015-07-20 18:17:45 +03:00
Tiger Wang
84e31ba670
Merge pull request #2362 from scribblemaniac/fix-redstone
...
Fixed redstone issue
2015-07-17 23:37:47 +01:00
Samuel Barney
9fde99aca2
Added documentation for GetLargeTreeAdjustment
2015-07-17 15:26:21 -06:00
scribblemaniac
00c3144283
Fixed redstone issue
...
Fixed issue where glowstone blocks would block power transmission
in some situations.
2015-07-17 00:48:21 -06:00
bibo38
6a27ec2ea0
Added Rabbit Metadata values.
...
Added the Rabbit Types and the MoreCarrotTicks value. Types are selected randomly on creation.
Fixes #1867
2015-07-17 01:09:06 +02:00
Tiger Wang
c633dd8cec
Merge pull request #2363 from scribblemaniac/improve-spider-ai
...
Improved spider AI
2015-07-16 22:22:48 +01:00
Tiger Wang
4b99a5bd49
Merge pull request #2364 from hallucino/ageable-mobs
...
Spawn baby mobs
2015-07-16 22:22:42 +01:00
Julian Laubstein
29d1f37258
Merge pull request #2360 from bibo38/waterfix
...
Now Water sources will also be created on top of existing water sources.
2015-07-16 23:07:24 +02:00
hallucino
9c85ed5864
Spawn baby mobs
2015-07-16 22:49:55 +02:00
scribblemaniac
55aa438831
Improved spider AI
...
Fixes #2335
2015-07-16 11:15:57 -06:00
bibo38
3c9e113985
Now Water sources will also be created on top of existing water sources.
...
See also on http://minecraft.gamepedia.com/Water#Source_blocks
Fixes #2097
2015-07-15 23:36:51 +02:00
Tiger Wang
eadd761a29
Merge pull request #2348 from bibo38/customname
...
Added CustomName and Health to sended Metadata of Monsters.
2015-07-15 22:18:11 +01:00
Julian Laubstein
8b74adcfab
Merge pull request #2353 from SamJBarney/DyedArmor
...
Implements Dyed Leather Armor
2015-07-15 22:31:48 +02:00
Samuel Barney
561296f269
Leather Armor can now be dyed.
...
* Created new color class to handle dye-related coloring
2015-07-15 14:05:36 -06:00
bibo38
d364b779d1
Added CustomName and Health to sended Metadata of Monsters.
...
Fixes #2113
2015-07-15 19:32:10 +02:00
Julian Laubstein
01f90ef97d
Merge pull request #2350 from SamJBarney/PeonySnowFix
...
Fixed Tall Grass placement
2015-07-15 19:31:41 +02:00
Samuel Barney
4235feb7fd
Fixed tall grass trying to be placed in cold biomes.
2015-07-15 11:04:09 -06:00
Tiger Wang
c390604bc1
Merge pull request #2349 from cuberite/maps
...
Improved maps
2015-07-15 17:13:55 +01:00
Alexander Harkness
2603013d79
Merge pull request #2036 from cuberite/sign-metamirror
...
Should Fix sign flipping.
2015-07-15 14:58:28 +01:00
NiLSPACE
0c3a3427cd
Merge pull request #2340 from hallucino/ageable-mobs
...
Support ageable mobs
2015-07-15 09:57:04 +02:00
Julian Laubstein
d7b10607d4
Merge pull request #2356 from LO1ZB/ImproveHunger
...
Fix food drain on movement.
2015-07-14 23:16:36 +02:00
Tiger Wang
8656e149c8
Improved maps
2015-07-14 21:46:30 +01:00
Hallucino
53207d3f18
Support ageable mobs
...
Move ageable stuff in Monster directly
2015-07-14 22:41:31 +02:00
Tiger Wang
9d4d25cdbf
Merge pull request #2352 from mmdk95/master
...
Fix duping doors
2015-07-14 21:32:28 +01:00
LO1ZB
405458d5e2
Fix food drain on movement.
2015-07-14 20:30:30 +02:00
mmdk95
c12704183b
Fix duping doors ( #1327 )
2015-07-14 18:42:40 +02:00
Julian Laubstein
e92335b669
Merge pull request #2346 from SamJBarney/TreeGrowthUpdate
...
Sapling Growth Update
2015-07-14 16:36:53 +02:00
Samuel Barney
037dbf110d
Torches can now be placed on top of upside down stairs.
2015-07-13 17:08:07 -06:00
Samuel Barney
d017fe5e39
Sapling Growth Update
...
* Growth has been slowed down
* Saplings do not grow if they do not have enough space to grow
* Saplings do not grow unless the light level is 9 or above
* Dark Oak doesn't grow unless it is in a 2x2
Jungle Trees now will grow into a large tree when 2x2 saplings are used.
2015-07-13 15:24:38 -06:00
Samuel Barney
051787dbc2
Switched from using std::max(std::min()) to using Clamp
2015-07-13 14:17:43 -06:00
Julian Laubstein
f6f27a139e
Merge pull request #2344 from bibo38/make_ptr
...
Changed allocation of smart pointers via make_xxx
2015-07-13 00:54:58 +02:00
bibo38
0cb0bbe51a
Changing the shared_ptr/unique_ptr constructors to the make_shared/make_unique functions
2015-07-12 21:02:47 +02:00
mmdk95
d3662e6589
Fixed DropSpenser sound #2333
2015-07-12 19:30:51 +02:00
Julian Laubstein
9b3b047004
Merge pull request #2330 from cuberite/libraryupdate
...
Library update
2015-07-12 14:46:33 +02:00
Tiger Wang
e69d4536ab
Added JsonCPP library location to search paths
...
* Fixed '-dirty' submodule changes
Probably fixes an issue somewhere too?
2015-07-12 12:23:11 +01:00
Tiger Wang
ccfe04a0a2
Updated and submodularised JsonCPP
...
Conflicts:
lib/jsoncpp
2015-07-09 23:10:51 +01:00
Samuel Barney
db3642de89
Fixed misplaced parens
2015-07-09 14:41:14 -06:00
Samuel Barney
aa94a275c6
Fixes compilation failures on MacOSX 10.10
...
* Replace old c-style casts with c++ casts
* Added `-Wno-error=old-style-cast` to Protocol18x.cpp
2015-07-09 11:15:37 -06:00
Mattes D
a55eaba7fa
Network: Fixed ServerHandle's address formatting.
2015-07-07 18:10:47 +02:00
Nounours Heureux
91833b7cb8
(Ender) Chests are obstructed by opaque blocks.
2015-07-07 12:29:52 +02:00
Mattes D
bebd4de144
Fixed warnings generated by 64-bit MSVC.
2015-07-07 11:50:06 +02:00
Samuel Barney
2faff189d4
Squashed Bonemeal Plant Growth Update
...
* Fixed Crops growing to maturity with only 1 bonemeal
* Trees now go through growth stages with bonemeal, as they do in
Vanilla Minecraft
2015-07-06 15:41:08 -06:00
worktycho
106e06617a
Merge pull request #2224 from cuberite/ChunkQueueCollapsing
...
Chunk queue collapsing: MK II
2015-07-04 14:43:00 +01:00
Samuel Barney
ba0577bbd0
Moved grabbing the light value to after the transparency check.
2015-07-03 13:05:02 -06:00
Samuel Barney
0307b6aba0
Added missing parens
2015-07-02 16:19:23 -06:00
Samuel Barney
e248539d74
Grass now only dies if it has an opaque block above it.
...
Grass only spreads to a dirt block if the light level is above 4 and the block above it is transparent.
2015-07-02 16:16:05 -06:00
Samuel Barney
404cf5dcfd
Farmland is now listed as an opaque block.
...
Changed spread light falloff for farmland to what it was originally.
2015-07-02 16:13:40 -06:00
Mattes D
66a164a9a7
Added neighbor specification in the OnNeighborChanged() block callback.
...
Fixes the OnNeighborChanged endless recursion with large melon / pumpkin fields.
Fixes #2213 .
2015-07-01 10:40:16 +02:00
Mattes D
f6ab461383
BlockArea: Fixed a crash with areas higher than chunk height.
2015-06-30 14:08:21 +02:00
STRWarrior
e5cfe0cd96
Added a size check for portals.
...
Made the portal size configurable
Alpha-sorted SetXYZNetherPortalXYZ functions
2015-06-28 17:05:44 +02:00
tycho
257011b440
use atomic for state, to avoid torn reads
2015-06-27 12:10:24 +01:00
bibo38
bb46afcb7e
Now Horses spawn with correct data values.
...
The max-value of style is 4, of color is 6.
See http://wiki.vg/Entities#Horse
Also based on the if, the max value of HorseType is 7.
Bugfix #2259
2015-06-26 19:32:16 +02:00
worktycho
0a7c54261f
Merge pull request #2241 from lkolbly/master
...
Work on NetherPortalScanner. Setup portal scanner to reset PortalCool…
2015-06-26 14:12:29 +01:00