340 Commits

Author SHA1 Message Date
Shoghi Cervantes
4c30b6b8a1 Optimized Liquid spreading, optimized light updates, improved side block get/update, fixed raw set not cleaning Block cache (TNT explosions) 2014-12-10 00:37:04 +01:00
Shoghi Cervantes
04ecbd1a76 Level optimization, added new chunk/block hashes 2014-12-09 14:55:21 +01:00
Shoghi Cervantes
a4735eaf76 Replaced some instanceof to null checks 2014-12-09 02:22:18 +01:00
Shoghi Cervantes
5e5f8bf33d Better block creation on Level 2014-12-08 22:02:36 +01:00
Shoghi Cervantes
3bb2f12cde Improved block reading
* Created global block states array
* Improved Level->getBlock() using block states
* Improved Level->getBlock() for 64-bit systems
* Added Level->getFullBlock()
* Added FullChunk->getFullBlock()
* Added Chunk->getFullBlock()
* Added ChunkSection->getFullBlock()
* Deprecated FullChunk->getBlock()
* Deprecated Chunk->getBlock()
* Deprecated ChunkSection->getBlock()
2014-12-08 20:54:47 +01:00
Shoghi Cervantes
68da4b5b39 Collect unallocated chunks from the Level provider 2014-12-07 18:27:11 +01:00
Shoghi Cervantes
e4557a2e8e Added HeightMap get/set methods on chunks, Level 2014-12-07 18:02:07 +01:00
Shoghi Cervantes
747f7685e7 Fix formatting issues due to bad IDE settings 2014-12-07 16:30:04 +01:00
Shoghi Cervantes
7506f01302 Improved Item property handling 2014-12-07 15:51:00 +01:00
Shoghi Cervantes
a98da3bab1 Renamed old getID() calls to getId() 2014-12-07 15:21:32 +01:00
Shoghi Cervantes
af82d616c1 Block creating and property handling rewrite, part2 2014-12-07 02:20:26 +01:00
Shoghi Cervantes
e44ed4da3b Enabled batch block sending again 2014-11-29 12:58:31 +01:00
Shoghi Cervantes
3930f379cf Updated light filter values 2014-11-29 11:58:50 +01:00
Shoghi Cervantes
66ba327e62 Improved light spread algorithm even more 2014-11-29 11:27:22 +01:00
Shoghi Cervantes
329ca62465 Improved light spread algorithm 2014-11-28 19:54:25 +01:00
Shoghi Cervantes
b3c3f896a3 Implemented light population, added Level->getFullLight() 2014-11-28 14:44:27 +01:00
Shoghi Cervantes
6d09754ea7 Improved Inventory->addItem(), fixed breaking containers duplicating the last slot, removed not necessary slot changes 2014-11-27 20:10:55 +01:00
Shoghi Cervantes
dd3207cbd8 Possible fix for #2267, #2314 2014-11-27 13:47:17 +01:00
Shoghi Cervantes
a7abd5ff9d Catch exceptions when chunks are unloaded 2014-11-27 13:35:54 +01:00
Shoghi Cervantes
1a5544f68c Fixed Chunk tile indexes 2014-11-08 15:00:18 +01:00
Shoghi Cervantes
1818e64c8e Merge branch 'master' into 0.10 2014-11-06 18:56:47 +01:00
Shoghi Cervantes
f1519e6d13 Improved Level->getTile() to a direct lookup instead of linear search 2014-11-06 12:34:33 +01:00
Shoghi Cervantes
522b75645c Merge branch 'master' into 0.10 2014-11-05 19:04:36 +01:00
Shoghi Cervantes
31903a764a Fixed unloaded chunks residing on memory and getting loaded again causing crash, fixed spawn chunks getting unloaded by players 2014-11-04 17:16:02 +01:00
Shoghi Cervantes
8fd6582e74 Automatically set Entity / Tile entity save identifiers 2014-11-04 12:04:08 +01:00
Shoghi Cervantes
a5369b3570 Fixed unloading chunks 2014-11-04 11:18:34 +01:00
Shoghi Cervantes
abbd33210a Possible fix for #2245 2014-11-04 00:19:50 +01:00
Shoghi Cervantes
2803a38fd1 Fixed random block updates not firing 2014-11-01 20:26:13 +01:00
Shoghi Cervantes
d5012f6fcf Fixed server not stopping after a fatal error 2014-11-01 03:07:47 +01:00
Shoghi Cervantes
8601405a88 Fixed CPU leak 2014-10-31 21:07:00 +01:00
Shoghi Cervantes
ce989876af Improved freeing chunks 2014-10-31 16:39:32 +01:00
Shoghi Cervantes
4fba6d7c86 Merge branch 'master' into 0.10 2014-10-30 23:20:59 +01:00
Shoghi Cervantes
57d1847c50 Updated to receive new optimizations 2014-10-30 16:02:48 +01:00
Shoghi Cervantes
c4c374e3fa Added extra chunk sending timings 2014-10-29 21:52:27 +01:00
Shoghi Cervantes
289bc56b4b Blocks now save their bounding box, fixed entity block collision check 2014-10-29 15:43:23 +01:00
Shoghi Cervantes
6f64af3066 Reuse even more objects! 2014-10-29 14:23:51 +01:00
Shoghi Cervantes
78f8d0280d Removed unused imports 2014-10-29 01:14:09 +01:00
Shoghi Cervantes
0680b98380 Remove chunks from advanced cache after setting 2014-10-29 01:07:30 +01:00
Shoghi Cervantes
8c4faa8622 Added extra Exceptions 2014-10-28 21:07:12 +01:00
Shoghi Cervantes
34ae760def New way to spawn entities/tiles using a global register table, allow overriding default entity/tile classes via classes 2014-10-28 13:09:27 +01:00
Shoghi Cervantes
b9f1812f61 Disallow further modification of Signs by its creator after load/unload 2014-10-28 11:05:32 +01:00
Shoghi Cervantes
350cee3d41 Added Event allocation pool, updated SPL with Class::onClassLoaded() 2014-10-28 10:47:40 +01:00
Shoghi Cervantes
144a871c07 Improved Vector3 and Block handling, less allocation on Positions 2014-10-28 10:03:10 +01:00
Shoghi Cervantes
db82f76c11 Improved network packets allocation 2014-10-27 20:30:33 +01:00
Shoghi Cervantes
7abf52e615 Implemented Vector3 List and AxisAlignedBB Pool to decrease object allocation 2014-10-27 15:39:20 +01:00
Shoghi Cervantes
1fc066fc37 Updated time steps from x2.5 to x1.25 2014-10-24 12:12:01 +02:00
Shoghi Cervantes
e3e97a4205 Improved Player->onGround checking 2014-10-20 12:52:00 +02:00
Shoghi Cervantes
fec387d2ec Fixed entities not being pushed out of blocks 2014-10-20 12:37:17 +02:00
Shoghi Cervantes
2f8267aa1e Improved Level object deallocation 2014-10-19 20:45:03 +02:00
Shoghi Cervantes
f2b573c32f Fixed Level->getMetadata() and similar, removed extra references 2014-10-19 19:51:36 +02:00