summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeLines
* Update CraftBukkit to Minecraft 1.5Travis Watkins2013-03-15-6731/+8471
|
* Fix compilation error with exception namesWesley Wolfe2013-03-02-4/+4
|
* Use the correct CB object for ContainerBrewingStand. Fixes BUKKIT-3357Nate Mortensen2013-03-02-2/+2
|
* Add proper logging for custom channel exceptions.Eimref2013-03-02-7/+20
|
* Implement PlayerItemConsumeEvent. Adds BUKKIT-2349Travis Watkins2013-03-02-0/+28
|
* Close inventory on teleport. FIXES BUKKIT-3021.Andrzej Pomirski2013-02-10-4/+5
|
* Check TravelAgent.findOrCreate(Location) for null; Fixes BUKKIT-3590EdGruberman2013-02-10-0/+3
| | | | | | | If a custom TravelAgent is used and returns null for findOrCreate method a NullPointerException will occur. Conflicts: src/main/java/net/minecraft/server/PlayerList.java
* Set CraftTravelAgent.DEFAULT to a non-null value. Fixes BUKKIT-3578James Clarke2013-02-06-1/+1
| | | | Currently, CraftTravelAgent will call s() on the passed-in WorldServer in order to set DEFAULT. However, s() will always return null at this point, because WorldServer.P will still be null, as it is set after the constructor is called. Instead, we set CraftTravelAgent.DEFAULT to the instance that is being constructed.
* Use entity UUID instead of EntityID for metadata. Fixes BUKKIT-3582feildmaster2013-02-06-2/+3
| | | | | | The entity id is a non-unique, non-persistent value, and will cause entities to lose their respective meta data on chunk unloading, and teleportation.
* Always return a TravelAgent; Fixes BUKKIT-3541EdGruberman2013-02-04-2/+7
| | | | | | | | | | | Recent changes caused PlayerPortalEvent to suddenly return null unexpectedly and could end up in NPEs resulting that did not before. This commit addresses that situation by always ensuring a TravelAgent instance is returned. The TravelAgent for world 0 is returned arbitrarily in an effort to compensate for plugins that are implementation dependent and expect some form of a TravelAgent to be accessible in the event at all times.
* Fix players spawning above portals. Fixes BUKKIT-3542.James Clarke2013-02-04-5/+5
| | | | | | | | | | | | Vanilla does not check for blocks in which the player could suffocate when changing dimension, so portals will happily spawn players in blocks when using a portal under certain circumstances. However, we currently check for these instances and move the player up until they will not suffocate. This means that players can sometimes be taken to above the target portal, making it seem as if a portal was not created. Instead, we now disable this suffocation check when moveToWorld is called from changeDimension, mirroring vanilla behavior more accurately.
* Always use the set exit location for portal events. Fixes BUKKIT-3555.James Clarke2013-02-04-2/+2
|
* Use the result of EntityPortalExitEvent. Fixes BUKKIT-3559.James Clarke2013-02-04-4/+12
|
* Fix NPE when getting bed spawn location.feildmaster2013-01-29-1/+1
|
* Fix contract with Player.getBedSpawnLocation. Fixes BUKKIT-3525feildmaster2013-01-29-2/+7
| | | | | Getting the bed spawn location is supposed to check if the bed is valid, however, it currently did not do so.
* When leaving the end, always target the main world. Fixes BUKKIT-3517feildmaster2013-01-29-1/+3
|
* Make command blocks only select players on its world. Fixes BUKKIT-3515feildmaster2013-01-28-0/+3
|
* Target default world when returning from The End; Fixes BUKKIT-3494EdGruberman2013-01-28-7/+15
| | | | | | | Due to the having to generate new logic to avoid using the customized PlayerConnection.moveToWorld, entities returning from The End were not properly calculating their exit target. This commit corrects that logic.
* Remove erroneous break statement in scheduler. Fixes BUKKIT-3395Wesley Wolfe2013-01-27-1/+0
|
* Update Fireballs to account for ExplosionPower. Fixes BUKKIT-3460feildmaster2013-01-27-1/+21
| | | | Adds BUKKIT-3516
* Ignore block functions for skulls on BlockPlace. Fixes BUKKIT-3495feildmaster2013-01-27-1/+2
| | | | | Skulls don't normally get block data applied to them, so we shouldn't apply it either.
* Direct all BlockPlaceEvents to a singular location. Fixes BUKKIT-3438feildmaster2013-01-27-141/+57
| | | | | | | | | | By having a single function to process BlockPlacement logic, we make it so that there is consistent behavior throughout all BlockPlace events. This should allow for easier troubleshooting and less diffs in source. This also fixes BUKKIT-3463 by including the correct coordinates that were clicked to the event.
* Fix TileEntities and Blocks getting out of sync. Fixes BUKKIT-3501feildmaster2013-01-27-11/+9
| | | | | | | | | | Also fixes: BUKKIT-3477 and BUKKIT-3488 Minecraft likes to double check that tile entities get set after they are placed, however we didn't set tile entities until after our event was called. This caused the world to have multiple tile entities in a single block location; to fix this we now set tile entities before the event.
* Call BlockGrowEvent for Cocoa plants. Fixes BUKKIT-2525QuarterAnimal2013-01-24-1/+1
|
* Add BlockCocoa for diff visibility.QuarterAnimal2013-01-24-0/+121
|
* Preserve source block in mushroom spread event. Fixes BUKKIT-3354QuarterAnimal2013-01-24-1/+7
|
* Properly calculate level cost for books. Fixes BUKKIT-3410feildmaster2013-01-24-0/+4
|
* Call BlockPlaceEvent for skulls the same as other blocks. BUKKIT-3406feildmaster2013-01-23-16/+7
| | | | | | | | | | When the skull BlockPlaceEvent was added it was made so the event would be called after all the data has been set, however this is a behavior change that is inconsistent with other BlockPlaceEvents. Instead, if people wish to get the block data they should schedule a task. Relates to: BUKKIT-3438
* Compensate for allow-nether/allow-end as false; Fixes BUKKIT-3466EdGruberman2013-01-23-11/+35
| | | | | | | | | | | | | When either of those settings are false, the worlds are not loaded and therefore will not be targeted for portal exits. Existing worlds are iterated directly to avoid defaulting to the first world if a direct dimension match is not found. Plugins must also specify exit from custom Bukkit worlds to comply with original commit: https://github.com/Bukkit/CraftBukkit/commit/2dc2af0 This commit introduces a constant to clarify the dependency on the CraftBukkit implementation of custom worlds having a dimension offset.
* Reload ban files when reloading the server. Adds BUKKIT-3470feildmaster2013-01-23-0/+3
|
* Return the valid max value for piston direction. Fixes BUKKIT-2191feildmaster2013-01-23-3/+3
| | | | | | By returning the following value (7) we remove the need to special case pistons in any way (other than the original purpose of this check, which is to ensure pistons have valid data)
* Refactor processBlockPlace logic. Fixes BUKKIT-3406 and BUKKIT-3454feildmaster2013-01-19-8/+14
| | | | | | | The previous logic was faulty since it lost the logic of "placing" the block. It was also taking into account data that could have been changed outside of the processing of this event, which is irrelevant to the processing of this event.
* Fix broken null contract with Jukebox.setPlaying, Fixes BUKKIT-3429feildmaster2013-01-19-3/+9
| | | | | | | | The javadocs state that a null may be used to remove the currently playing sound, however this causes a NullPointerException. It also doesn't process registering the record correctly, along with processing non-valid items.
* [Bleeding] Add experimental support for entity portal travelingEdGruberman2013-01-19-565/+422
|
* Add BlockEnderPortal for diff visibilityEdGruberman2013-01-19-0/+56
|
* Improve the item meta deserialization code-styleWesley Wolfe2013-01-18-112/+81
| | | | | | Fixed the ItemMetaFireworkTest Add set power unit tests for FireworkMeta
* Always call PotionSplashEvent. Fixes BUKKIT-3363Zloteanu Nikita2013-01-17-1/+1
| | | | | This change allows plugins to add recipients to a PotionSplashEvent when it would have otherwise had none.
* Place beds with the correct data. Fixes BUKKIT-3447feildmaster2013-01-17-1/+1
|
* Update CraftBukkit to Minecraft 1.4.7feildmaster2013-01-17-346/+80
|
* Initialize entity data before spawning them. Fixes BUKKIT-3209feildmaster2013-01-16-5/+6
| | | | | | Vanilla does the initialize before spawning everywhere except in the SpawnerCreature, our spawn event depends on this behavior to be consistent.
* Fix entities traveling sideways. Addresses BUKKIT-3443bloodmc2013-01-16-2/+2
| | | | Original: Update mappings to correct 1.4.6 version.
* Get the BlockState before changing the block. Fixes BUKKIT-3441feildmaster2013-01-16-2/+4
|
* Handle beds and doors the same way as other blocks. Fixes BUKKIT-3437feildmaster2013-01-16-19/+14
| | | | Relates to: BUKKIT-3438
* Throw BlockPlaceEvent when placing double slabs. Fixes BUKKIT-2469feildmaster2013-01-16-39/+61
|
* Add ItemStackMapTestWesley Wolfe2013-01-15-0/+121
| | | | This test was missing from c056293b38cb9a1296937d91746b175252be044a
* Spawn monsters without prematurely exiting. Fixes BUKKIT-3425cexikitin2013-01-14-1/+1
| | | | | | | By using return 0, we exit the loop prematurely preventing other creature types from being spawned if one type is set to 0. By using continue we move on to the other types and allow them to spawn properly.
* Various ItemMeta fixes.Wesley Wolfe2013-01-09-13/+15
| | | | | | | | | Fixes BUKKIT-3408, BUKKIT-3190, BUKKIT-3191, BUKKIT-3407 These changes relate mostly to semantical changes for serialization contract, exception of changing the map scaling value from byte to boolean, what it should have been in the first place. Appropriate unit tests were added for CraftMapMeta, as they were missing.
* Update unit test to reflect firework color fix. Fixes BUKKIT-3382Wesley Wolfe2013-01-05-1/+1
| | | | The ItemDye color-int array uses dye data values, not wool.
* Update calls to DyeColor getData and getByData. Addresses BUKKIT-2786Wesley Wolfe2013-01-05-7/+7
| | | | | These two methods are now deprecated and replaced by the strictly equivalent calls using wool data.
* Implement fishing experience. Adds BUKKIT-3348feildmaster2013-01-01-1/+3
|