summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeLines
* Properly set persistence flag for bred animals. Fixes BUKKIT-4751feildmaster2013-09-10-0/+5
|
* Check that a vehicle is a Vehicle before casting. Fixes BUKKIT-4749Nate Mortensen2013-09-09-1/+1
| | | | | | | | | | When an entity is being moved as the passenger of an entity from one entity to another, a VehicleExitEvent is fired, but it is assumed that the current entity is a Vehicle. However, entities can be passengers of more than just Vehicles, which causes a ClassCastException to be thrown. This commit fixes the issue by checking that the current entity's vehicle's bukkitEntity is an instance of Vehicle before casting it to Vehicle.
* Fix improperly initialized usernamesWesley Wolfe2013-09-02-0/+3
|
* Set current recipe to null when a recipe isn't found. Fixes BUKKIT-2311T00thpick12013-08-28-0/+1
| | | | | This commit restores the diff from 84dbc21aa71b96fd1d2ea40d624b536309118cde that has since been lost.
* Return correct hasLineOfSight value for players. Fixes BUKKIT-4634Roger Baumgartner2013-08-26-1/+1
| | | | | | | Prior to this change when a plugin called Player.hasLineOfSite() the method would always return false because EntityHuman does not extend EntityInsentient. This commit changes that by explicitly checking for line of sight between two entities and returning that value.
* Fire FoodLevelChangeEvent when eating cake. Fixes BUKKIT-2242T00thpick12013-08-15-1/+11
|
* Add BlockCake for diff visibility.T00thpick12013-08-15-0/+88
|
* Make ItemFactoryTest.java platform agnostic. Fixes BUKKIT-4695Wesley Wolfe2013-08-14-4/+6
| | | | | | | Maven paths that include spaces (and possible other characters) get improperly translated when using a file handle from a URL. This changes the unit test to open a stream directly from the URL, providing proper file resolution on multiple platforms.
* Return instance of CraftInventoryBeacon for Beacons. Fixes BUKKIT-4521T00thpick12013-08-07-2/+2
|
* Fix missed diff for chat packets. Fixes BUKKIT-4666Wesley Wolfe2013-08-07-33/+1
| | | | | | | | This commit removes chat wrapping. It is no longer needed, as clients properly render lines with line breaks. This commit also changes an outgoing chat message to use the vanilla behavior for indicating a client cannot chat with commands-only setting.
* Wrap plugin.getDefaultWorldGenerator in try-catch. Fixes BUKKIT-4116riking2013-08-07-3/+7
| | | | | | If a plugin generates an exception when returning a world generator, the server will crash. This change adds a try-catch block to keep the server from crashing on plugin defined world generators.
* Fix javac workaround in ItemStackTestWesley Wolfe2013-08-06-13/+10
|
* Add BukkitObjectIOStream tests on top of ItemMeta testsWesley Wolfe2013-08-06-9/+76
|
* Validate title for custom inventories. Fixes BUKKIT-4616, BUKKIT-4663Wesley Wolfe2013-08-06-0/+3
| | | | | | | | | Custom inventories currently do not validate the titles provided. Null values cause NPEs when writing packets. Values longer than 32 characters disconnect clients. This change throws and IllegalArgumentException for null titles or titles longer than 32 characters.
* Use correct spawn reason for Villagers Breeding. Fixes BUKKIT-4113T00thpick12013-08-06-1/+1
|
* Add PathfinderGoalMakeLove for diff visibilityT00thpick12013-08-06-0/+90
|
* Call unleash event for non-sitting animals. Fixes BUKKIT-4658T00thpick12013-08-06-1/+3
| | | | | | The unleash event is only called for animals that are sitting - ones that receive no movement vector. This adds the missing event call for non-sitting animals.
* Fix off by 1 error for spawn protection. Fixes BUKKIT-4154Jonatan Noponen2013-08-03-1/+1
|
* Fix mistranslation in isPlayerCreated() for IronGolems. Fixes BUKKIT-4543Kai Dederichs2013-08-03-1/+1
|
* Update players when coming into view of vehicle. Fixes BUKKIT-4628Wesley Wolfe2013-08-03-0/+6
| | | | | | | | | When only considering trackers from player perspective, attach entity packet could be sent before a packet for a respective vehicle is in view and will, in turn, be ignored. This adds another notification when the vehicle comes into view to cover all cases.
* Implement Leash API. Adds BUKKIT-4459, BUKKIT-4583T00thpick12013-08-03-14/+156
|
* Add EntityLeash and ItemLeash for diff visibilityT00thpick12013-08-03-0/+171
|
* Ignore null sound by contract. Fixes BUKKIT-4641Wesley Wolfe2013-08-02-0/+3
|
* Indicate help is a command. Fixes BUKKIT-4642Wesley Wolfe2013-08-02-1/+5
|
* Revert to 1.5 despawning behaviour for Ocelots and Wolves. Fixes BUKKIT-4449EvilSeph2013-08-02-8/+5
|
* Add timeout for Panic goal. Fixes BUKKIT-4531EvilSeph2013-08-02-0/+6
|
* Add PathfinderGoalPanic for diff visibility.EvilSeph2013-08-02-0/+41
|
* Add raw sound string playSound method. Adds BUKKIT-2443h31ix2013-08-02-1/+5
| | | | A method has been added to Player which allows the server to send a sound string to the client. Assuming the client has the specified sound, it will be played. This is needed by the implementation of the /playsound command.
* Restore diff missed in 4176258a836062b22ac46919aefa5cc36fae78f2Wesley Wolfe2013-08-01-0/+4
|
* Revert "Correct vehicle movement issues." Fixes BUKKIT-4565Wesley Wolfe2013-07-29-11/+3
| | | | | | | This reverts commit 3d906d134417cfeefe7f71b916fee4d105e7650f. Conflicts: src/main/java/net/minecraft/server/EntityTrackerEntry.java
* Fix NBT token for attribute names. Addresses BUKKIT-4483Wesley Wolfe2013-07-28-1/+7
|
* Store item attributes. Addresses BUKKIT-4523Wesley Wolfe2013-07-27-1/+134
|
* Restore CraftBukkit diff in ItemDye. Fixes BUKKIT-4493T00thpick12013-07-25-1/+1
| | | | Change ItemDye to pass the EntityHuman for StructureGrowEvent again.
* Store owning Horse in horse inventory. Fixes BUKKIT-4586Wesley Wolfe2013-07-25-3/+8
|
* Fix CraftBukkit diffsWesley Wolfe2013-07-23-3/+3
|
* Check interactable items before event. Fixes BUKKIT-4576Wesley Wolfe2013-07-23-10/+16
| | | | | | | Items that cause entities to change state, including tags, chest, and leashes, do not update the client properly following the firing of PlayerInteractEntityEvent. This change makes the item checks occur before the event fires, to concur with the client's assumptions.
* Add API to control scaled health. Adds BUKKIT-4590T00thpick12013-07-23-11/+106
| | | | | | | | | | | | | | | | | | | | | | | This commit implements the ability to set the scale of hearts that the client renders. When the Packet44UpdateAttributes packet is sent, the max health attribute is replaced with a scaled version, to preserve the scaled health illusion clientside. In order to accurately display the scaled health for players, a true health is stored within CraftPlayer, and the datawatcher now stores the scaled health. The getHealth() method for players still returns their true health. Changed setHealth() within EntityLiving to appropriately handle health for instances of EntityPlayer. Inlined a call to setHealth(getMaxHealth()) within the EntityLiving constructor to work around CraftEntity instantiation. Additionally fixes the health values sent when eating food within FoodMetaData and ItemFood, which previously sent the unscaled health; this commit alters them to send the properly scaled health. Additionally fixes BUKKIT-4535, BUKKIT-4536, and BUKKIT-4127
* Use ambient setting of potion effects. Fixes BUKKIT-4357 and BUKKIT-3653Jim Bilbrey2013-07-13-2/+2
| | | | | | | | | This changes livingEntity.addPotionEffect(PotionEffect, boolean) to construct the MobEffect using the constructor that includes the ambient setting as supplied by the PotionEffect This also changes livingEntity.getActivePotionEffects() to construct the PotionEffects using the ambient setting supplied by the MobEffects.
* Correctly fire VehicleExitEvent. Fixes BUKKIT-3761Nate Mortensen2013-07-13-6/+52
| | | | | | | | | | | | This change makes it so that EntityHuman#setPassengerOf(Entity) invokes its parent method when leaving vehicles so that VehicleExitEvent is fired for players leaving vehicles. This change also fixes BUKKIT-2110, making it so VehicleExitEvent correctly handles cancellation. The implementation of VehicleExitEvent completely ignored the cancellation state of the event, making it so that cancelling the event had no effect. Cancelling a VehicleExitEvent now causes the entity to remain inside of the vehicle, with no visual stutter.
* Return inGround when checking Arrow's OnGround state. Fixes BUKKIT-4439EvilSeph2013-07-10-0/+9
|
* Clear attributes on death; mistranslation issue.EvilSeph2013-07-10-1/+1
|
* Implement Horse API. Adds BUKKIT-4424h31ix2013-07-10-48/+210
| | | | | | | | API has been added to interface with Horses and to modify their inventories. Horse entities will now be recognized with the type EntityType.HORSE, and will no longer be UNKNOWN. HorseJumpEvent, EntityDamageEvent, and EntityTameEvent are all correctly fired for horses. This commit fixes BUKKIT-4393.
* Add PathfinderGoalTame for diff visibility.h31ix2013-07-10-0/+63
|
* Correctly set level name for 'world' option. Fixes BUKKIT-4474EvilSeph2013-07-09-1/+1
|
* Ocelots -> Ocelittle. Addresses BUKKIT-4449EvilSeph2013-07-09-3/+6
|
* Update CraftBukkit to 1.6.2mbax2013-07-08-1102/+1152
|
* Removed extra eat call. Fixes BUKKIT-4462EvilSeph2013-07-04-1/+0
|
* Properly clear attributes on remove and death. Fixes BUKKIT-4416EvilSeph2013-07-03-7/+2
|
* Fix scaling for player health. Fixes BUKKIT-4431Wesley Wolfe2013-07-02-2/+15
|
* Fix donkey/mule dupe exploit.EvilSeph2013-07-02-1/+3
|