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
worktycho
7187c00342
Merge pull request #2282 from Haxi52/button-fixes
...
Button fixes
2015-06-25 15:46:33 +01:00
Mattes D
8e1437be08
Merge pull request #2290 from bibo38/mousefix
...
Fixed Middle-Click Button in the ClickWindow-Packet.
2015-06-25 16:11:56 +02:00
bibo38
31466fda5f
Doors now get placed on the server-side.
...
The Y-Value is already the lower door block(From ItemHandler.cpp:346).
Increasing it once again, places the door into the air, which is blocked by Cuberite.
Bugfix #2279
2015-06-25 16:17:03 +02:00
bibo38
ec628846d2
Fixed Middle-Click Button in the ClickWindow-Packet.
...
See http://wiki.vg/Protocol#Click_Window
The MiddleClick has the button 2 and not 0. Now you can max an item in an inventory in Creative mode, without inventory desync.
Bugfix #2260
2015-06-25 13:01:48 +02:00
Hax52
9f1d1c058f
Buttons no longer click on when already on. Buttons now play sound when clicking off.
2015-06-24 13:52:56 -05:00
Mattes D
c1780366b0
Merge pull request #2288 from cuberite/melonFix
...
Call Neighbour changed handlers when a melon is created
2015-06-24 14:59:47 +02:00
Mattes D
4f8e2f180d
Added a forgotten break in cHangingEntity constructor.
...
This had caused loading the cHangingEntity to fail in debug builds.
2015-06-24 13:39:11 +02:00
tycho
b02b262a7c
Call Neighbour changed handlers when a melon is created
...
Should prevent cascading farmland updates on breaking melons
2015-06-23 21:27:37 +01:00
worktycho
c0d8a4933e
Merge pull request #2284 from cuberite/FixBiomeGen
...
Generate biomes when pregenerating heights through CompositedHeiGen.
2015-06-23 17:26:39 +01:00
Mattes D
2daa9c5854
Fixed melon metadata when growing from stem.
2015-06-23 17:23:35 +02:00
Mattes D
55a5f11b1b
Fixed right-click with bonemeal.
...
The client would send invalid right-click events with Y set to 0x7ff, which would crash the server. Only process bonemeal for valid clicks (valid blockface).
2015-06-23 15:23:11 +02:00
Mattes D
6cd71a1e73
Generate biomes when pregenerating heights through CompositedHeiGen.
...
Fixes #2283 .
2015-06-23 14:45:35 +02:00
Tiger Wang
33fc1474d9
Fixed minor errors in Tycho's code
...
Everything should work now :)
2015-06-22 21:27:13 +01:00
Samuel Barney
e70e2b8ecc
Rebased version of Code
2015-06-22 11:29:38 -06:00
Mattes D
3889b2cac2
Refactored block placement workflow.
...
Multi-blocks can now use the default OnPlayerPlaced() callback in cItemHandler.
2015-06-21 19:49:22 +02:00
Mattes D
e06dd8f20e
Added basic support for loading village prefabs from files.
2015-06-20 15:37:41 +02:00
worktycho
33d68572a6
Merge pull request #2255 from cuberite/LoadablePieces
...
Loadable pieces
2015-06-19 19:41:28 +01:00
Mattes D
8df31067d4
Externalized cPrefabPiecePool self-test.
2015-06-19 16:15:59 +02:00
Mattes D
ae16689420
PrefabPiecePool: Added loading from cubeset file.
2015-06-18 23:32:43 +02:00
Tiger Wang
6920e468ad
Check the return value of InflateString
...
Fixes #2256
2015-06-18 11:19:41 +01:00
Mattes D
c6012a95bd
LuaState: Added support for config-style usage.
...
Globals and table values can be queried from the Lua state easily.
Use perfect forwarding.
2015-06-17 17:13:45 +02:00
Tiger Wang
813ca04676
Fixes #2245
...
Whoops :/
2015-06-17 00:27:50 +01:00
tycho
6687ed03a1
Removed version 29 serilization
...
This has been unused since support for <1.7 has been dropped.
2015-06-16 10:24:06 +01:00
tycho
b259ab53fb
Fixed override
...
This was causing a compile error in clang 3.6
2015-06-15 18:03:54 +01:00
Tiger Wang
f8c7efdcd7
Merge pull request #2244 from martindev2/#2092-TNT-Fire
...
Fix block placement over fire
2015-06-14 22:01:09 +01:00
worktycho
0cd64ab90b
Fixed tigers format string
2015-06-14 13:18:01 +01:00
Martin McArthur
d8865339f5
implemented DoesIgnoreBuildCollision on BlockFire to allow blocks to be placed on top
2015-06-14 12:53:09 +01:00
Tiger Wang
882f7c70c0
Fixed log files' timestamps
...
Also made Release mode log less technical information about the world
storage threads.
2015-06-14 11:23:14 +01:00
Lane Kolbly
9d620a20a0
Work on NetherPortalScanner. Setup portal scanner to reset PortalCooldown. Changed where player is spawned. Added a_InitSpawn flag to CreateAndInitializeWorld.
2015-06-13 16:09:43 -05:00
worktycho
d961693020
Merge pull request #2237 from lkolbly/master
...
Fixing how village doors are generated in 1.8.
2015-06-13 21:55:36 +01:00
NiLSPACE
8ecd545857
Merge pull request #2240 from cuberite/UpdatedPrefabs
...
Updated prefabs from the Gallery server.
2015-06-13 18:29:46 +02:00
Mattes D
ec4bd42dd8
Updated prefabs from the Gallery server.
2015-06-13 18:14:09 +02:00
Lane Kolbly
dafdded7d9
Fixed typo in BlockDoor.h
2015-06-13 08:00:20 -05:00
Nounours Heureux
d79f601d5a
Added HOOK_KILLED
2015-06-13 10:00:31 +02:00
Mattes D
f0ee0b8ce8
NetherPortalScanner: Fixed type conversion warnings.
2015-06-13 08:46:05 +02:00
Alexander Harkness
ee3082a3c5
If defined, not just if.
2015-06-12 12:37:22 +01:00
Alexander Harkness
070801d561
Fixed build error on Linux
2015-06-12 11:57:34 +01:00
Mattes D
d390214929
SelfTests are registered and executed after logging framework init.
...
Fixes #2228 .
2015-06-11 22:20:04 +02:00
Tiger Wang
dd4b415051
Reinstate "Chunk queue collapsing"
...
This reinstates commit f36acb6835
and reverts commit adfbc42c02
.
2015-06-10 15:16:05 +01:00
Mattes D
d436a71cbc
Merge pull request #2162 from lkolbly/master
...
Nether Portal Jumping & Creation Code
2015-06-10 08:00:50 +02:00
Lane Kolbly
73b6a44d5f
Implemented nether portal scanning code.
2015-06-09 18:23:57 -05:00
Alexander Harkness
1e77f27191
Merge pull request #2144 from mc-server/comparators
...
Redstone improvements [SEE DESC]
2015-06-09 09:15:08 +01:00
Mattes D
db863422b8
cBlockArea: Added CountSpecificBlocks() API function.
2015-06-08 21:52:13 +02:00
worktycho
adfbc42c02
Revert "Chunk queue collapsing"
2015-06-07 20:45:47 +01:00
Alexander Harkness
f1a3535d6e
Merge pull request #2210 from nounoursheureux/bucket-craft
...
Cake crafting now give back the bucket
2015-06-07 14:43:16 +01:00
Alexander Harkness
e2c4a0a595
Merge pull request #2211 from jan64/master
...
Fix incorrent experience sending for 1.7 clients
2015-06-07 14:41:27 +01:00
Nounours Heureux
24210cbd6f
Fixed style
2015-06-07 15:22:47 +02:00
jan64
be4a5a0803
Fix incorrent experience sending for 1.7 clients
2015-06-07 15:21:18 +02:00
Nounours Heureux
1a7e8f3e4f
Cake crafting now give back the bucket
2015-06-07 15:03:47 +02:00
Tiger Wang
061866616d
Added moar comments
2015-06-07 12:54:07 +01:00
Tiger Wang
f44d123ba8
Vector hasher is now a separate class
2015-06-07 12:53:59 +01:00
Tiger Wang
ed6c37febc
Use emplace to construct structures
2015-06-06 12:30:08 +01:00
Tiger Wang
a6983ec3c9
Improved link unpowering speed
...
Also fixed compile errors
2015-06-06 12:21:22 +01:00
Tiger Wang
171c59a01b
Changed appropriate containers to unordered_map
...
Thanks to @worktycho for guidance!
* Potential speed improvements
2015-06-06 12:21:21 +01:00
Tiger Wang
6a831c0b6f
Improved link power behaviour
2015-06-06 12:21:21 +01:00
Tiger Wang
bef7cce5ed
Improved wires and repeaters
...
* Fixed repeater cross-chunk power detection
+ Re-implemented horizontal wire cut-off checking
2015-06-06 12:21:20 +01:00
Tiger Wang
151fe0fc59
Fixed wire consuming much resources
2015-06-06 12:21:19 +01:00
Tiger Wang
84534dfeb2
Redstone wire and trapdoor fixes
...
* Fixes #1887
* Fixes #1763
* Fixes #1083
2015-06-06 12:21:19 +01:00
Tiger Wang
bd48475085
Provides improvements to redstone wire
...
Intermediary commit that fixes #1763 .
2015-06-06 12:21:18 +01:00
Tiger Wang
de5b1401f8
Comparators
2015-06-06 12:21:09 +01:00
Tiger Wang
f36acb6835
Merge pull request #2179 from mc-server/ChunkQueueCollapsing
...
Chunk queue collapsing
2015-06-06 10:55:12 +01:00
worktycho
54c1926a3a
Merge pull request #2205 from birkett/master
...
Daemon support on Linux
2015-06-05 22:33:49 +01:00
tycho
ffbe5f6a2f
Fix iterating
2015-06-05 22:31:22 +01:00
tycho
9ebbe969c8
Made the list of chunks to stream an unordered_set
...
This should increase performance of chunk streaming
2015-06-05 22:31:22 +01:00
tycho
bfe52277b4
Rewrote ChunkSending queue for significantly improved performance
2015-06-05 22:31:21 +01:00
tycho
19c95ee564
Moved Chunk Broadcasts over to the regular queue
2015-06-05 22:31:21 +01:00
Anthony Birkett
9dac390247
Daemon support on Linux.
...
Added null console log listener, avoid printf() when stdout is closed.
2015-06-05 15:47:47 +01:00
worktycho
519fd1d36d
Merge pull request #2206 from mc-server/APIDumpTimeStamp
...
APIDump time stamp
2015-06-05 13:04:28 +01:00
Mattes D
1ec9665118
Fixed overshoot in cLineBlockTracer.
...
Fixes #2161 .
2015-06-05 11:29:54 +02:00