300 Commits

Author SHA1 Message Date
Shoghi Cervantes
a4735eaf76 Replaced some instanceof to null checks 2014-12-09 02:22:18 +01:00
Shoghi Cervantes
306f492fc0 Added Player death animations, improved spawning behavior to correct invisible players, fixed players getting stuck when dead, closes #2304 2014-12-09 01:36:46 +01:00
Shoghi Cervantes
747f7685e7 Fix formatting issues due to bad IDE settings 2014-12-07 16:30:04 +01:00
Shoghi Cervantes
a98da3bab1 Renamed old getID() calls to getId() 2014-12-07 15:21:32 +01:00
Shoghi Cervantes
f0d6128282 Use squared distance on movement handling 2014-12-07 15:18:14 +01:00
Shoghi Cervantes
20e63ae543 Force player setting their new position 2014-12-05 02:24:34 +01:00
Shoghi Cervantes
294e680d5d Added armor items and max stack size for them. 2014-12-04 00:04:09 +01:00
Shoghi Cervantes
e44ed4da3b Enabled batch block sending again 2014-11-29 12:58:31 +01:00
Shoghi Cervantes
a72488d41e Updated player movement processing and event handling 2014-11-29 12:43:34 +01:00
Shoghi Cervantes
26e47ef694 Removed old revert flag from Player->processMovement() 2014-11-28 14:49:06 +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
38089af098 Improved global entity motion encoding using per-player queues 2014-11-27 14:26:36 +01:00
Shoghi Cervantes
a3e50f6337 Properly close inventory windows from Players 2014-11-27 13:32:07 +01:00
Shoghi Cervantes
754e0dbb49 Protect permission removal against bad plugins 2014-11-18 18:43:30 +01:00
Shoghi Cervantes
525c8db779 Improved chunk loading/unloading 2014-11-18 18:33:24 +01:00
Shoghi Cervantes
9fd6a695f6 Fixed permission-related memory leak 2014-11-18 13:42:24 +01:00
Shoghi Cervantes
92143d523c Added SetDifficultyPacket 2014-11-06 19:07:24 +01:00
Shoghi Cervantes
6b6222c09c Allow passing a Player source as last parameter on Inventory->addItem() and Inventory->removeItem() 2014-11-04 00:16:25 +01:00
Shoghi Cervantes
29d1fd1fc8 Fixed player viewer list including themselves 2014-11-03 11:29:01 +01:00
Shoghi Cervantes
f7baf46a54 Fire PlayerInteractEvent on 0xff face 2014-11-02 16:12:51 +01:00
Shoghi Cervantes
75c0d8324c Fixed some inventory events not firing on players 2014-11-02 13:26:58 +01:00
Shoghi Cervantes
da4334f06b Revert Armor then Inventory instead of Inventory then Armor on failed transaction 2014-11-01 23:02:59 +01:00
Shoghi Cervantes
f8f1e0e9df Despawn entities correctly from clients as they move 2014-11-01 16:47:40 +01:00
Shoghi Cervantes
8601405a88 Fixed CPU leak 2014-10-31 21:07:00 +01:00
Shoghi Cervantes
01ffb14e39 Fixed #2204 2014-10-31 17:34:45 +01:00
Shoghi Cervantes
ce989876af Improved freeing chunks 2014-10-31 16:39:32 +01:00
Shoghi Cervantes
f8d6ebabf3 Removed some calls 2014-10-31 15:57:07 +01:00
Shoghi Cervantes
7ab3c57b00 Optimized networking code & AxisAlignedBB 2014-10-30 22:06:07 +01:00
Shoghi Cervantes
673b867ee8 Fixed players not loading chunks when stuck on a unloaded chunk 2014-10-30 20:05:40 +01:00
Shoghi Cervantes
8cb9dd9a14 Fixed #2244 2014-10-29 22:58:40 +01:00
Shoghi Cervantes
022a978ffb Added InventoryPickupArrowEvent 2014-10-29 16:29:00 +01:00
Shoghi Cervantes
8a768cea33 EntityDamageEvent and children now only fire if the attack is possible, moved event trigger to Entity->attack() 2014-10-29 16:02:40 +01:00
Shoghi Cervantes
78f8d0280d Removed unused imports 2014-10-29 01:14:09 +01:00
Shoghi Cervantes
7eed92e8fb Use Player->forceMovement on MovePlayerPacket non-tick revert 2014-10-29 00:31:17 +01:00
Shoghi Cervantes
f772391866 Fixed InventoryPickupItemEvent 2014-10-28 22:05:54 +01:00
Shoghi Cervantes
8c4faa8622 Added extra Exceptions 2014-10-28 21:07:12 +01:00
Shoghi Cervantes
b6f7ee20fc Added Error -> Exception handling 2014-10-28 20:43:36 +01:00
Shoghi Cervantes
0fce83c671 Fixed #2189 2014-10-28 13:27:30 +01:00
Shoghi Cervantes
8080643cc9 Fixed plugins crashing the server when teleporting players on an invalid event 2014-10-28 13:18:40 +01:00
Shoghi Cervantes
5bf2174cad Fixed UseItemPacket being able to be sent before spawning 2014-10-28 13:16:20 +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
a5b85c549a Added Snowballs 2014-10-28 12:13:31 +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
a5a3f4801a Fixed entities not getting ticks on movement 2014-10-27 15:53:14 +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
8f7dfe0b71 Removed extra ; from if, fixes #2205 2014-10-21 18:37:29 +02:00
Shoghi Cervantes
ef97efcd96 Added explosion death message 2014-10-20 13:00:03 +02:00
Shoghi Cervantes
e3e97a4205 Improved Player->onGround checking 2014-10-20 12:52:00 +02:00