1
0
Commit Graph

838 Commits

Author SHA1 Message Date
luksor111@gmail.com
994b02f5af Added sounds to levers and mobs
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1093 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-21 18:05:34 +00:00
madmaxoft@gmail.com
afaf104b40 Added more constants into eEntityType; made them a compulsory parameter to the constructor, so that all entities have proper type.
Also added a few utility functions to cEntity for distinguishing the types (IsPlayer(), IsPickup() etc.)

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1092 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-21 12:52:14 +00:00
madmaxoft@gmail.com
033af999ba Reworked the IsA() / GetClass() framework to actually be useful. Added GetParentClass().
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1090 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-21 12:21:20 +00:00
madmaxoft@gmail.com
912a1e7adc Refactored the TakeDamage API to take equipped weapon and armor into consideration (PvP untested)
http://forum.mc-server.org/showthread.php?tid=625

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1087 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-21 11:04:08 +00:00
madmaxoft@gmail.com
231d6aed35 Extended player inventory by direct r/o access to armor slots
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1086 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-21 11:02:31 +00:00
madmaxoft@gmail.com
ee34d805be Replaced "const double &" with plain "double" for simplicity
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1085 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-21 10:59:59 +00:00
madmaxoft@gmail.com
af66f8ebae Fixed a crash in redstone simulator when destroying blocks in Y < 2
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1084 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-20 13:56:42 +00:00
madmaxoft@gmail.com
9d5a1a9f6d Fixed a bool evaluation warning in BlockDoor.h
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1083 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-20 09:51:33 +00:00
luksor111@gmail.com
e176745781 Removed chat messages from console
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1082 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-20 06:46:15 +00:00
luksor111@gmail.com
05d71675f6 Added dispensers (they can't dispense items yet)
Fixed crash when digging snow
Moved BlockPlace hook check, so Core plugin will no longer block item usage
Player chat messages are now visible in the console

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1081 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-19 21:19:36 +00:00
luksor111@gmail.com
a10c4774f5 Implemented double doors
Implemented fence gate
Updated g_BlockTransparent[]
Doors can now only be opened by right clicking
Doors will now drop when not supported by block

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1080 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-19 09:29:53 +00:00
madmaxoft@gmail.com
756f20433a Fixed time calculation in cWorld::Tick()
Should fix chunk saving bug in http://forum.mc-server.org/showthread.php?tid=434&pid=5663#pid5663

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1079 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-17 14:23:17 +00:00
madmaxoft@gmail.com
fc9bbbbbf6 cPiston refactoring to use cWorld::GetBlockTypeMeta() and proper types
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1078 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-16 12:16:04 +00:00
madmaxoft@gmail.com
5239c4e709 Made WormNest caves generate smaller.
http://forum.mc-server.org/showthread.php?tid=409&pid=5654#pid5654

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1077 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-16 11:56:52 +00:00
madmaxoft@gmail.com
7f5bb5c3e3 RedstoneSimulator refactoring to use cWorld::GetBlockTypeMeta() as much as possible
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1076 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-16 07:07:30 +00:00
madmaxoft@gmail.com
b1777fa867 Levers (patch contributed by Keyboard)
http://forum.mc-server.org/showthread.php?tid=649

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1075 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-16 05:52:45 +00:00
luksor111@gmail.com
9a839a3a98 Fixed fall damage again
Added sound effects to pistons

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1074 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-15 13:27:01 +00:00
madmaxoft@gmail.com
310c1076a7 cChunk now tracks its neighbors as direct pointers; used in UnboundedRelGetBlock et al.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1073 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-14 22:38:30 +00:00
madmaxoft@gmail.com
15fe5a1d41 Fixed cCriticalSection's debugging functions
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1072 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-14 22:36:12 +00:00
luksor111@gmail.com
50e87ac978 Fixed warnings in Player.cpp
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1071 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-27 22:17:07 +00:00
luksor111@gmail.com
8ca150b700 Added initial adventure mode support
Added missing Emerald crafting recipe
You get more fall damage when jumping
Torch no longer protects players from fall damage
Fixed Ender Chest drops

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1070 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-27 19:55:23 +00:00
luksor111@gmail.com
65cf4ad33d Furnace now lights up when smelting items
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1069 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-26 14:42:24 +00:00
luksor111@gmail.com
eb7131bd12 Fixed certain blocks crashing clients when mined
Fixed rail duplication glitch
Fixed fall damage calculation
Glass no longer drops glass

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1068 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-26 10:03:34 +00:00
madmaxoft@gmail.com
46c7f75cab Rails don't turn grass into dirt underneath them. (Patch contributed by STR_Warrior)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1066 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-25 20:31:07 +00:00
luksor111@gmail.com
c24905426c Implemented rail placement mechanics.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1065 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-25 13:50:20 +00:00
luksor111@gmail.com
eed6f9bb7b Fixed drops for: Stone, Mycelium, Redstone Torch.
Fixed item usage for Jukeboxes and Spawn eggs in survival.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1064 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-24 09:50:38 +00:00
madmaxoft@gmail.com
95a94c3db8 ByteBuffer: Fixed buffer overrun possibility.
http://forum.mc-server.org/showthread.php?tid=633&pid=5473#pid5473

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1063 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-22 20:51:06 +00:00
madmaxoft@gmail.com
8191ed3b93 More ByteBuffer checks: Is it used from a single thread only?
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1062 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-22 20:42:33 +00:00
madmaxoft@gmail.com
8eab4f83b9 SocketThreads fixes for crashes reported in FS #272
http://www.mc-server.org/support/index.php?do=details&task_id=272&project=2

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1061 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-22 14:10:21 +00:00
madmaxoft@gmail.com
51553b9306 Added "primaryserverversion" to the "help" list.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1060 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-20 21:41:33 +00:00
madmaxoft@gmail.com
2fcdbfd428 Added primary server version interface to cRoot and "primaryserverversion" console command.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1059 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-20 21:28:43 +00:00
madmaxoft@gmail.com
c96447007e Aggressive debug mode cByteBuffer validity checking.
Hopefully fixed the "BytesToEndOfBuffer" assert.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1057 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-20 20:44:47 +00:00
madmaxoft@gmail.com
6cec0d6306 Adjusted the default for chunk generator structures.
http://forum.mc-server.org/showthread.php?tid=434&pid=5398#pid5398

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1055 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-20 20:04:49 +00:00
madmaxoft@gmail.com
07097534a3 Biome lists can have ":count" in them for adjusting biome occurence rate. Some more error logging.
Idea created at FS #274, http://www.mc-server.org/support/index.php?do=details&task_id=274

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1054 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-20 19:45:28 +00:00
madmaxoft@gmail.com
65bc09f8e8 Fixed wrong c++ standard assumptions about bools.
Should fix FS #265.
http://forum.mc-server.org/showthread.php?tid=629&pid=5415#pid5415

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1053 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-18 21:50:05 +00:00
madmaxoft@gmail.com
fcdaaae64b CraftingRecipes parse now dumps lines it cannot parse.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1052 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-18 13:09:13 +00:00
faketruth
8ad7747902 Android: Made the initial pre-calculated spawn area smaller
Android: Fixed FastNBT
Android: Fixed level.dat reading/writing
GroupManager uses groups.example.ini as default
WebAdmin uses webadmin.example.ini as default

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1049 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-16 22:06:12 +00:00
madmaxoft@gmail.com
b65a22fc1f Fixed boolean comparison.
Don't compare booleans to false / true, use them directly.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1048 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-16 16:03:56 +00:00
madmaxoft@gmail.com
052abcabc7 Removed log message when spawning players on a client.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1047 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-16 15:56:41 +00:00
madmaxoft@gmail.com
c360d683e0 Fixed crashes caused LightingThread overwriting memory where it shouldn't (yay valgrind!)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1046 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-16 09:40:15 +00:00
luksor111@gmail.com
ea8545dff1 - Added the "wait" music disc
- Vines can now be placed on leaves

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1045 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-15 18:57:47 +00:00
madmaxoft@gmail.com
635386faad More valgrind fixes
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1044 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-15 14:02:17 +00:00
madmaxoft@gmail.com
28c345a841 Added an assert for unknown protocol, so that the function isn't missed when upgrading to a new protocol.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1043 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-15 13:36:14 +00:00
madmaxoft@gmail.com
e41b15565c Added support for 1.4.4 client, using the 1.4.2 protocol class
No MCServer-supported packets changed. Initial patch by Setimes.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1042 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-15 11:00:40 +00:00
madmaxoft@gmail.com
9f4b6ffc6c Added a Printf() function that returns a new AString by value.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1041 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-15 10:58:46 +00:00
madmaxoft
76ab9fc0a8 More valgrind uninitialized var fixing
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1040 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-13 15:58:27 +00:00
madmaxoft
1b75e74a9e Fixed a valgrind error in lighting thread (uninitialized var value)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1039 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-13 15:50:49 +00:00
luksor111@gmail.com
f32091f98c Fixed block breaking in survival.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1038 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-12 11:10:01 +00:00
madmaxoft@gmail.com
e8e678e1b7 Added DeadBushes finisher (initial patch by STR_Warrior; DeathBushes FTW!)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1037 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-11 15:35:49 +00:00
madmaxoft@gmail.com
934d3fe565 Removed an unused obsolete function chain - cWorld::GetChunkBlockData()
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1036 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-11 15:06:31 +00:00