1
0
Commit Graph

856 Commits

Author SHA1 Message Date
Tiger Wang
55cfb232db Possibly fixed #618 2014-02-02 19:10:22 +00:00
Tycho
1e4e6c4619 Merge branch 'master' into registerfix 2014-02-02 09:11:53 -08:00
madmaxoft
c3d4cc4f4f Fixed dark oak and acacia placement.
Fixes #621.
2014-02-02 17:52:05 +01:00
Tycho
42497847ac Added missing files 2014-02-02 06:59:36 -08:00
Tycho
0b0aa5554f Merge branch 'master' into GeneratingBenchmark2
Conflicts:
	src/Blocks/BlockTorch.h
2014-02-02 06:56:07 -08:00
Tycho
b82fc394dd Changed Signiture of OnUpdate 2014-02-02 06:49:37 -08:00
Tiger Wang
b89419f603 Creative players take Plugin damage 2014-02-02 12:47:17 +00:00
Tiger Wang
275035eb70 Fixed #620 2014-02-02 12:43:57 +00:00
Kirill Kirilenko
a134fd45cf Added saving of angry flag. 2014-02-02 14:28:42 +04:00
Kirill Kirilenko
a1c36c18e0 Fixed sitting tag. 2014-02-02 13:56:55 +04:00
Tiger Wang
dd325d742d Again improved LogReplaceLine
* Fixed issues on Linux with cursor positioning
* Made preprocessor blocks more readable
* Improved reliability of line clearing on Windows
- Removed an *unneeded* variable
2014-02-01 21:44:23 +00:00
Tiger Wang
e26dc5cc0a Added checks for ice into IsBlockWater()
* This fixes players spawning in vast oceans of ice, as opposed to the
previous water
2014-02-01 21:40:50 +00:00
Tiger Wang
b0784d1931 Split cCoord template into one and two data types 2014-02-01 21:40:02 +00:00
Kirill Kirilenko
2a52b390c0 Monster's nominal speed was increased. 2014-02-01 20:38:53 +04:00
Tycho
6e39ed3868 Changed Signiture of OnDigging 2014-02-01 08:35:48 -08:00
Kirill Kirilenko
0d33f2d11d Fixed teleport to air, if owner is flying. 2014-02-01 20:22:12 +04:00
Kirill Kirilenko
0259aed8be Added saving of collar's color. 2014-02-01 20:16:42 +04:00
Tycho
cf3b4ec226 Changed Signiture of OnDestroyedByPlayer 2014-02-01 06:01:13 -08:00
Tycho
4b5bd4dedf Removed register keyword from Messinne Twister
Removed register as it is meaningless in c++ and causes a depreciated warning in clang 3.4 in c++ mode for va_copy
2014-02-01 05:14:31 -08:00
Mattes D
33759197e9 Merge pull request #585 from daniel0916/hooks
Added "player destroying" and "player destroyed" hooks
2014-02-01 05:08:08 -08:00
Tycho
c6304b2b4f Changed pointers to references 2014-02-01 05:06:32 -08:00
daniel0916
dbbd47b96d Removed "player destroying" hook 2014-02-01 13:27:44 +01:00
Tiger Wang
6f660b379e Another Linux fix 2014-02-01 01:54:26 +00:00
Tiger Wang
5becfe850a Fixed Linux compile 2014-02-01 01:47:21 +00:00
Tycho
fec17409d2 Merge branch 'master' into GeneratingBenchmark2
Conflicts:
	src/World.h
2014-01-31 15:31:05 -08:00
Tiger Wang
397208145e A newline issue is resolved 2014-01-31 23:25:15 +00:00
Tycho
25ec7750aa Changed signitures of Several BLockHandler Methods
Changed the signitures of the following to use interfaces:
GetPlacementBlockTypeMeta
OnPlaced
OnPlacedByPlayer
OnDestroyed
OnNeighbourChanged
NeighbourChanged
OnUse
CanBeAt
Check
2014-01-31 15:17:41 -08:00
Tiger Wang
6b18add09b Fixed issues with insufficient console space 2014-01-31 23:02:26 +00:00
Tiger Wang
02e7527893 Properly initialised variables 2014-01-31 20:50:29 +00:00
Kirill Kirilenko
8180b643ff Added reading saved state of the wolf (sitting or standing). 2014-01-31 21:34:00 +04:00
Mattes D
617c5b1fff Merge pull request #607 from mc-server/Wolf_Owner_Saving
Wolf: Their owner now gets saved.
2014-01-31 07:32:38 -08:00
STRWarrior
19e5122b77 Inversed condition. 2014-01-31 16:31:55 +01:00
STRWarrior
c7e4ade7c3 Wolf: If Owner tag is missing a normal ownerless wolf will spawn. 2014-01-31 16:27:21 +01:00
madmaxoft
882d108622 Fixed cLineBlockTracer:Trace() signature. 2014-01-31 16:01:16 +01:00
madmaxoft
5092ae5266 Added cPluginManager:BindCommand() form to the API.
That's the canonical way to call static functions.
2014-01-31 16:01:15 +01:00
madmaxoft
66427d754b Added cChunkDest::UpdateHeightmap()
This function is necessary for plugins manipulating the generated chunks, they need to update the heightmap before it is passed back to the generator.
2014-01-31 16:01:15 +01:00
Tiger Wang
7ae5631d89 Added a comment 2014-01-31 00:05:23 +00:00
Tiger Wang
d8aa0b0ec7 Improved code
* Fixed some issues
* Fixed standard violation
2014-01-31 00:04:57 +00:00
STRWarrior
550a09020d Fixed bad variable. 2014-01-30 21:49:39 +01:00
STRWarrior
1a361be44f Check if the tag is found. 2014-01-30 21:46:45 +01:00
STRWarrior
419778a306 Fixes #606 2014-01-30 21:39:31 +01:00
tonibm19
16a939a757 Attempt at implementing #563
Not tested (I don't have RasPi)
2014-01-30 18:02:37 +01:00
madmaxoft
b61a74d6a2 Lua: Fixed an error in table-functions callbacks. 2014-01-29 22:56:38 +01:00
Tiger Wang
7d03876a3e Added LOGREPLACELINE for line replacement 2014-01-29 19:22:03 +00:00
Tiger Wang
ed7816419d Fixed redstone simulator crash found in #570 2014-01-29 19:19:14 +00:00
tonibm19
e9c1d1ea9c Did what xoft said 2014-01-29 20:02:41 +01:00
tonibm19
1c1832b6ce Rewritten code.
Implemented xoft suggestion.
Using MoveToPosition as tigerw suggested.
2014-01-29 19:15:26 +01:00
tonibm19
ba4865f7ee Fixed sheep 2014-01-29 18:32:46 +01:00
tonibm19
73d9a285d5 Fixed a copypasta error... 2014-01-29 18:25:10 +01:00
tonibm19
ebe0f9372f Now mobs follow you when holding their breed item 2014-01-29 18:08:33 +01:00
madmaxoft
04107fa85d Limited sign lines to 15 chars.
Fixes #598.
2014-01-29 17:59:49 +01:00
madmaxoft
e40c5a20c8 Plugin files are loaded in alphabetical order.
Except for the Info.lua file which gets loaded always last. Implements #597.
2014-01-29 17:48:04 +01:00
STRWarrior
5e3f7947ae Removed debug message when a firework entity hit a solid block. 2014-01-29 13:28:08 +01:00
STRWarrior
374034e615 Bottle o' Enchanting spawns an experience orb. 2014-01-29 13:27:03 +01:00
madmaxoft
789cf63740 Added 1.7.4 to the list of supported protocols. 2014-01-29 12:16:27 +01:00
madmaxoft
3bbca8c291 Protocol 1.7: Encryption is enabled only with auth. 2014-01-29 09:56:31 +01:00
madmaxoft
bc6fc859f4 Protocol 1.7: Forced encryption on all connections.
This is for testing purposes only, to find bugs in the encryption. Once the encryption is deemed stable, it will be enabled only for servers with enabled Authentication.
2014-01-28 23:53:54 +01:00
madmaxoft
9de52252ac Crypto: Added public key encryption / decryption. 2014-01-28 23:53:54 +01:00
madmaxoft
f7cbb07b54 Fixed an error in Crypto. 2014-01-28 23:53:53 +01:00
Mattes D
3390607ee5 Merge pull request #594 from mc-server/Villager_Update
Villager update
2014-01-28 07:32:01 -08:00
madmaxoft
76457d3673 Fixed timing on *nix. 2014-01-28 16:28:55 +01:00
STRWarrior
8ca98e0c0e Renamed Farmer functions and added doxycomments 2014-01-28 16:26:44 +01:00
STRWarrior
b2bacf3a25 Villager: NoCountDown and Action function don't check VillagersShouldHarvestCrops anymore because it shoudn't even be activated anywhere. 2014-01-28 15:40:13 +01:00
madmaxoft
81837edb22 Fixed a slight bug in RSA encryption code. 2014-01-28 09:50:48 +01:00
Mattes D
5f9228bac8 Merge pull request #595 from mc-server/NonBlockingSockets
Non blocking sockets
2014-01-27 21:43:59 -08:00
STRWarrior
807a4dba98 Villager doesn't check the environment for crops if it doesn't need to. 2014-01-27 22:04:24 +01:00
STRWarrior
babc80ed77 The world can now be configured wether farmers should be able to harvest crops. 2014-01-27 22:02:19 +01:00
STRWarrior
8bf9043f98 Villager: Few more comments. 2014-01-27 21:39:00 +01:00
madmaxoft
a359275064 Squashed common code. 2014-01-27 21:34:54 +01:00
STRWarrior
33ad2761a0 Cleanup
Most code in Tick is now split up in different functions.
2014-01-27 21:34:22 +01:00
madmaxoft
4169af1ce1 Fixed Linux compilation. 2014-01-27 21:33:06 +01:00
madmaxoft
cc1284a753 Rewritten networking to use non-blocking sockets.
This fixes #592.
2014-01-27 21:27:13 +01:00
STRWarrior
723bb78dd1 Villagers: Harvesting is more rare. 2014-01-27 20:52:42 +01:00
STRWarrior
5b983b72fa Villager: Farmers can't place crops on blocks other then farmland. 2014-01-27 20:44:18 +01:00
Tiger Wang
fc9e527830 SIGABRT exits with failure. 2014-01-27 18:57:26 +00:00
STRWarrior
9cf006ecea Fixed compiler error. 2014-01-27 19:06:50 +01:00
STRWarrior
3dbe6c6de9 Villager: Farmer: Crops finding is more random. 2014-01-27 18:58:09 +01:00
STRWarrior
9807056a9c Added GetCropsPos and DidFindCrops functions. 2014-01-27 18:33:57 +01:00
STRWarrior
06c3bc1ea5 Villagers: Farmers now replant the crops. 2014-01-27 18:27:57 +01:00
STRWarrior
2cdd8f1961 Villagers: Fixed only gettings the crops block when farming. 2014-01-27 17:30:18 +01:00
STRWarrior
ca12decaf6 Villagers don't look for new crops when they already found one.
Slight cleanup.
2014-01-27 17:20:39 +01:00
STRWarrior
89a620ca54 E_BLOCK_POTATOES isn't an solid block. Villagers were floating above them. 2014-01-27 17:19:13 +01:00
STRWarrior
969bf05a26 Villagers: Farmers can also harvest carrots and potatoes. 2014-01-27 15:44:55 +01:00
STRWarrior
ed95f4d81b Makes farmers farm crops. 2014-01-27 14:40:31 +01:00
madmaxoft
30c431b479 Fixed client packet parsing.
When the packet wouldn't fit the current buffer, the server would mis-parse the next packet. This was the cause for #541.
Also modified comm logging, now each direction can be turned on separately.
2014-01-26 17:56:12 +01:00
madmaxoft
ab4672be40 cByteBuffer has more self-tests. 2014-01-26 17:56:12 +01:00
madmaxoft
61848ff5a0 Item-loading now checks for weird bytes. 2014-01-26 17:56:11 +01:00
madmaxoft
a3ac1be7b7 Fixed Byte-order reading.
The functions would fail on bytes that were above 127.
2014-01-26 17:56:11 +01:00
Tiger Wang
ea9de4bbb7 Added SIGABRT to catchers list 2014-01-26 16:15:05 +00:00
Tycho
6e6409b1a0 Removed cWorld Include 2014-01-26 07:10:29 -08:00
Tycho
a13d009a30 Refactored GetPlacementBlockTypeMeta 2014-01-26 07:06:25 -08:00
Tycho
bed2ee22e8 Merge branch 'master' into GeneratingBenchmark2
Conflicts:
	src/Blocks/BlockRail.h
	src/World.h
2014-01-26 06:28:51 -08:00
Tycho
14e48ccb4b Refactored cBlockHandler::OnUse and dependents 2014-01-26 06:20:39 -08:00
Mattes D
09ee8a1bb6 Merge pull request #589 from mc-server/minecartimprovements
Minecart improvements
2014-01-26 05:13:54 -08:00
Mattes D
1f4e12c50c Merge pull request #590 from mc-server/Wolf_Fix
Wolf: Small fix since the new AI and a new small feature.
2014-01-26 04:40:16 -08:00
STRWarrior
4c780e7b44 Fixed bug where wolfs would teleport while they were sitting. 2014-01-26 13:27:35 +01:00
STRWarrior
a533386144 Small fix since the new AI and a new small feature.
You get particles when trying to tame wolfs.
They don't walk anymore when they are sitting.
2014-01-26 13:07:21 +01:00
Tiger Wang
70113b5730 Fixed segmentation fault on villager damage
It occurred when attack was environmental.
2014-01-26 00:14:00 +00:00
Tiger Wang
52f7467fe1 Reduced unnecessary echoes (thanks xoft) 2014-01-25 23:48:48 +00:00
Tycho
a2d3eea80b Added support for overide in c++11 supporting varients of gcc/clang 2014-01-25 15:02:31 -08:00