madmaxoft@gmail.com
46ce9df7d9
Clarified documentation on the cItemGrid:RemoveItem() functions
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1519 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-26 20:18:56 +00:00
madmaxoft@gmail.com
84a7e14e86
Block entities with storage now correctly mark the chunk as dirty when their contents change.
...
http://forum.mc-server.org/showthread.php?tid=434&pid=8210#pid8210
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1515 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-26 15:29:43 +00:00
madmaxoft@gmail.com
5c3235ecdc
Implemented droppers
...
Added a common ancestor class "DropSpenser" that has the common code for dropper and dispenser and is Lua-accessible, too. The Debuggers plugin now triggers both droppers and dispensers when rclking them with a redstone torch.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1514 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-26 14:39:04 +00:00
madmaxoft@gmail.com
b4522bf14e
ItemGrid: Added the RemoveOneItem() function
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1513 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-26 14:34:26 +00:00
madmaxoft@gmail.com
96d5986733
Alpha-sorted the block meta list
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1512 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-26 14:32:25 +00:00
madmaxoft@gmail.com
67154217a2
Added base Code::Blocks project (WIP, still doesn't compile) and fixed some source errors with MinGW.
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1510 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-25 14:59:41 +00:00
madmaxoft@gmail.com
41db106a8f
Added all new bindings, refactored Debuggers; new Debuggers function.
...
Rclk with a redstone torch on a dispenser causes the dispenser to spit out one item each tick.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1509 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-25 12:03:20 +00:00
madmaxoft@gmail.com
a6c6818930
Fixed WindowOwner implementation
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1508 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-25 12:00:25 +00:00
madmaxoft@gmail.com
c640e9346c
cChestEntity and cDispenserEntity now inherit from a common ancestor, cBlockEntityWithItems
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1507 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-25 11:59:13 +00:00
madmaxoft@gmail.com
e3136c2d0f
Fixed the cWorld:DoWithChestAt(), DoWithDispenserAt() and DoWithFurnaceAt() callbacks binding.
...
They are now doing what the comment said they are doing.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1506 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-25 11:57:28 +00:00
nielsbreu@gmail.com
717ad90700
Added sound to the vaporize simulator. FS #315
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1505 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-25 10:38:58 +00:00
madmaxoft@gmail.com
90e0656c75
Slight cleanup in the cInventory / cItemGrid API
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1504 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-24 09:16:09 +00:00
madmaxoft@gmail.com
cf87169737
Refactored cInventory to use cItemGrid for the actual Storage
...
This makes the API more orthogonal and is easier to use in the plugins. Also changes in the inventory are now propagated to the needed places (armor updates to BroadcastEntityEquipment etc.) even when the inventory is changed by a plugin.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1503 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-24 07:30:39 +00:00
madmaxoft@gmail.com
3b429a9bdf
Added ItemCategory::IsArmor()
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1502 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-24 07:20:16 +00:00
madmaxoft@gmail.com
a4d903aa15
Fixed linking error from rev 1498
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1501 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-21 12:58:21 +00:00
keyboard.osh@gmail.com
8519ff4db9
Entity: Switched detection of ground to use g_BlockIsSolid global variable.
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1499 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-21 05:51:38 +00:00
keyboard.osh@gmail.com
088a79211b
Added basic functions for width and height for Entities
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1498 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-21 05:49:56 +00:00
madmaxoft@gmail.com
e475c61a44
Stairs placement fix (patch contributed by Simi)
...
http://forum.mc-server.org/showthread.php?tid=503&pid=8159#pid8159
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1497 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-20 19:48:05 +00:00
madmaxoft@gmail.com
aa9e0c5aa0
Fixed linux compilation
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1496 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-19 18:42:42 +00:00
madmaxoft@gmail.com
5d3ade0267
Inventory changes made by plugins are now propagated to the client
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1495 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-19 18:41:16 +00:00
madmaxoft@gmail.com
90c398a392
Inventory code cleanup, players can now see each other's armor
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1493 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-19 18:22:37 +00:00
madmaxoft@gmail.com
e32cffbbdd
Fixed cWorld:ForEachEntity()
...
Fix for FS #374 .
The function was processing only one chunkmap layer object, due to an inverse condition.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1491 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-19 15:44:21 +00:00
madmaxoft@gmail.com
950d7f5f2d
Empty permission is always granted
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1490 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-19 15:06:28 +00:00
madmaxoft@gmail.com
34fa53ca3a
Fixed entity chunking.
...
Sand simulator was off, sand in negative coords wouldn't fall properly
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1489 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-19 11:49:01 +00:00
madmaxoft@gmail.com
b7041c1bd2
Removed pickup logging
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1487 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-17 14:30:18 +00:00
madmaxoft@gmail.com
bd910e78e2
DistortedHeightmap: Rewritten to use the optimized cPerlinNoise and linear upscaling
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1486 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-16 13:14:25 +00:00
madmaxoft@gmail.com
e7238456db
Moved noise debugging into the Noise.* files
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1485 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-15 17:09:38 +00:00
madmaxoft@gmail.com
1118ae3033
Fixed 2D linear upscale to compile on Linux, added a test for it.
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1484 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-15 15:55:04 +00:00
madmaxoft@gmail.com
7c094ee220
Pickup: fixed logging parameters causing a crash.
...
http://forum.mc-server.org/showthread.php?tid=434&pid=8059#pid8059
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1483 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-15 14:52:56 +00:00
madmaxoft@gmail.com
464dcc3764
Noise3D generator is now using linear upscaling
...
Measured 30% performance increase.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1482 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-14 21:11:40 +00:00
madmaxoft@gmail.com
07cfe8ee35
Added more logging to pickup collection code.
...
Hoping to fix irresponsive pickups, http://forum.mc-server.org/showthread.php?tid=434&pid=8019#pid8019
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1481 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-13 20:29:52 +00:00
madmaxoft@gmail.com
fd26595b56
Added logging to pickup collection when a player is near and when collecting.
...
This should help fix the inactive pickups bug, http://forum.mc-server.org/showthread.php?tid=434&pid=8019#pid8019 )
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1480 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-13 20:26:45 +00:00
madmaxoft@gmail.com
0a08ae14f6
LinearUpscale: postfixed with InPlace to differentiate from a future src/dst version
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1479 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-12 21:11:25 +00:00
madmaxoft@gmail.com
59eb312291
Temporarily set all pickups to spawn in the middle of the block from which they fall.
...
(Additional fix for FS #338 )
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1478 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-12 21:00:21 +00:00
madmaxoft@gmail.com
2038da8681
Noise3D: cleanup
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1477 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-12 20:45:29 +00:00
madmaxoft@gmail.com
b1bd1001f7
DistortedHeightmap: Deserts are now covered with sand and mushroom islands with mycelium (patch contributed by STR_Warrior)
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1476 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-12 20:04:07 +00:00
madmaxoft@gmail.com
1927095d25
Renamed linear interpolation from Noise.h to a more proper LinearUpscale and moved it to a separate file.
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1475 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-12 17:55:49 +00:00
madmaxoft@gmail.com
d851c47acd
cWorld: Temporary fix for FS #338
...
The pickups get spawned with zero speed, not to mess up their physics simulation. Marked as temporary, remove when physics are completed.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1474 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-12 16:23:49 +00:00
madmaxoft@gmail.com
4553886d64
DistortedHeightmap: Added info comment about the parameters table
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1473 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-12 16:15:21 +00:00
madmaxoft@gmail.com
25cda4e8b4
cItems: Added runtime bounds-checking to avoid server crashes with badly written plugins.
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1472 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-12 15:58:29 +00:00
madmaxoft@gmail.com
8f2920a090
Converted the Noise3D generator to optimized noise and lerp
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1471 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-11 21:09:39 +00:00
madmaxoft@gmail.com
2bd03871c7
Added generic LinearInterpolation in 1D, 2D and 3D.
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1470 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-11 21:08:20 +00:00
madmaxoft@gmail.com
8d0b607feb
Noise: Fixed optimized Cubic noise calculation
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1469 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-11 21:06:03 +00:00
madmaxoft@gmail.com
4ac29d4cc5
Tiny formatting fix of rev 1463
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1467 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-09 19:09:27 +00:00
madmaxoft@gmail.com
6c66e19f94
Noise: Added an efficient 3D cubic noise generation
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1466 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-09 19:07:09 +00:00
madmaxoft@gmail.com
7e02ec87b9
Fixed a few out-of-bounds reads
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1465 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-09 19:06:16 +00:00
nielsbreu@gmail.com
7dc9b2ce8d
Fixed error while compiling.
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1464 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-09 15:08:20 +00:00
nielsbreu@gmail.com
4e44c4b33a
function SpawnItemPickups is now exported to Lua. Lua is able to create a Items object.
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1463 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-09 14:32:27 +00:00
madmaxoft@gmail.com
da85eb9db2
Added 1.5.2 compatibility.
...
FS #372
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1461 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-08 11:10:55 +00:00
madmaxoft@gmail.com
7cbf36bf17
Refactored window clicking code to use different click actions
...
First part of solving FS #371 ; should fix #370 .
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1459 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-08 09:45:07 +00:00