summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Ocelot.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-08-02Experience orb (#4259)changyong guo1-5/+5
* Replace cWorld::FindClosesPlayer with cWorld::DoWithClosestPlayer * Implement experience reward splitting into the orb sizes used in vanilla * Modified speed calculation in cExpOrb::Tick to make the orbs fly towards the player Fixes #4216
2018-07-30Ocelots no longer multiply exponentially (#4272)peterbell101-14/+9
Along with a call to `destroyentities`, this fixes #4271 I'm guessing the intention of this code was to modify the normal spawning of ocelots. However, `cEntity::SpawnOn` is actually called to send the entity to an individual client. That means this code was run for every single player, every time they were sent a chunk with ocelots in it. Thus, the ocelots population would grow exponentially as players log in and move around.
2018-07-24Broadcast refactor (#4264)peterbell101-3/+2
* Move Broadcast functions from cChunkMap to cBroadcaster - Remove cBroadcastInterface in favour of cBroadcaster. - cChunk: Remove broadcast functions. * resurect broadcast interface * Absorb cBroadcaster into cWorld. Removes the need for forwarding the function calls. * Improve const-correctness * Use Int8 instead of char + Comment `ForClients` functions * Improve comments * Broadcaster: Rename ForClients functions
2018-02-04Ocelots don't take fall damage (#4171)Bond-0091-0/+10
2017-09-11Replace ItemCallbacks with lambdas (#3993)peterbell101-37/+24
2017-09-02Revert "Replace ItemCallbacks with lambdas (#3948)"LogicParrot1-24/+37
This reverts commit 496c337cdfa593654018c171f6a74c28272265b5.
2017-09-01Replace ItemCallbacks with lambdas (#3948)peterbell101-37/+24
2017-08-17Sitting cats block enderchests from opening (#3906)Bond-0091-0/+28
2017-07-12Added basic ocelot behavior (#3829)Bond-0091-0/+205