Commit graph

661 commits

Author SHA1 Message Date
CraftBukkit/Spigot
246e624213 SPIGOT-3829: Apply some speed limits to all entities
By: md_5 <git@md-5.net>
2018-02-19 09:52:00 +11:00
CraftBukkit/Spigot
9355bb0ed9 Expand Structure Block API
By: Senmori <thesenmori@gmail.com>
2018-02-12 10:29:51 +11:00
CraftBukkit/Spigot
4377f7fede SPIGOT-3813: Player.setHealth not reliable in conjunction with attribute API
By: md_5 <git@md-5.net>
2018-02-12 08:59:32 +11:00
CraftBukkit/Spigot
920e1b53d9 SPIGOT-3805: Minecart does not teleport through Nether Portal
By: md_5 <git@md-5.net>
2018-02-09 18:02:53 +11:00
CraftBukkit/Spigot
7453a5a9eb Expand EnderSignal API
By: Senmori <thesenmori@gmail.com>
2018-02-03 17:48:41 +11:00
CraftBukkit/Spigot
c9693edfb0 SPIGOT-3784: Reset horse chests after event
By: md_5 <git@md-5.net>
2018-01-28 09:44:16 +11:00
CraftBukkit/Spigot
6f9c0bf3cb Expand CreatureSpawner API
By: Senmori <thesenmori@gmail.com>
2018-01-24 17:18:25 +11:00
CraftBukkit/Spigot
bf003c508a SPIGOT-3775: ghost player list entry if kicked on join
By: md_5 <git@md-5.net>
2018-01-23 22:49:26 +11:00
CraftBukkit/Spigot
a9afd0a670 Send complete metadata update to joining players
By: md_5 <git@md-5.net>
2018-01-08 19:48:32 +11:00
CraftBukkit/Spigot
c3ccbeb17d CauldronLevelChangeEvent does not use new level
By: md_5 <git@md-5.net>
2018-01-08 13:42:41 +11:00
CraftBukkit/Spigot
b4f6c0ea4a SPIGOT-3735: Missing call to BlockFadeEvent
By: md_5 <git@md-5.net>
2018-01-04 08:57:01 +11:00
CraftBukkit/Spigot
3d805cd0cb SPIGOT-3729: Add AreaEffectClouds to tracker
By: md_5 <git@md-5.net>
2018-01-02 09:35:58 +11:00
CraftBukkit/Spigot
9a972c6f30 SPIGOT-355: API for Villager careers
By: Senmori <thesenmori@gmail.com>
2017-12-31 21:21:03 +11:00
CraftBukkit/Spigot
8560cbd06a SPIGOT-3717: Fix some RCON commands
By: md_5 <git@md-5.net>
2017-12-26 07:28:56 +11:00
CraftBukkit/Spigot
b83b867dbb SPIGOT-3686: Move entity event call earlier in method
By: md_5 <git@md-5.net>
2017-12-09 17:32:19 +11:00
CraftBukkit/Spigot
41e68bf772 Fix missing event call for BlockRedstoneLamp
By: md_5 <git@md-5.net>
2017-12-07 10:59:30 +11:00
CraftBukkit/Spigot
939f54a01e SPIGOT-3674: Take into account max stack size for PlayerDropItemEvent
By: md_5 <git@md-5.net>
2017-12-03 08:55:19 +11:00
CraftBukkit/Spigot
48f3ad297b SPIGOT-3668: Missing EntityToggleGlideEvent in creative mode
By: md_5 <git@md-5.net>
2017-11-28 09:33:40 +11:00
CraftBukkit/Spigot
1256b90fd8 SPIGOT-1505: PlayerItemMendEvent
By: Senmori <thesenmori@gmail.com>
2017-11-21 10:17:31 +11:00
CraftBukkit/Spigot
be94470a9f Fix mismatched setArrowCount method
By: md_5 <git@md-5.net>
2017-11-17 11:03:30 +11:00
CraftBukkit/Spigot
c0ef3e197d Fix dispensing bone meal not having the correct data value
By: Thinkofdeath <thethinkofdeath@gmail.com>
2014-02-06 21:59:20 +00:00
CraftBukkit/Spigot
4a0e197bb8 Implement max fuse tick & explosion radius methods to Creeper
By: Parker Hawke <hawkeboyz2@hotmail.com>
2017-11-07 07:38:58 -05:00
CraftBukkit/Spigot
3a788673df SPIGOT-3638: Don't process async chat on shutting down server
By: md_5 <git@md-5.net>
2017-11-08 10:36:11 +11:00
CraftBukkit/Spigot
f7d75ce15b SPIGOT-3637: Adjust yaw yet again
By: md_5 <git@md-5.net>
2017-11-07 17:21:38 +11:00
CraftBukkit/Spigot
62c185e909 Fix bad diff
By: md_5 <git@md-5.net>
2017-10-13 21:47:55 +11:00
CraftBukkit/Spigot
30cdbb75b6 SPIGOT-3607: Bad yaw from armorstands treated as living
By: md_5 <git@md-5.net>
2017-10-13 21:36:32 +11:00
CraftBukkit/Spigot
01186b718b SPIGOT-3603: Fix client timing out in scenarios where it sends no packets.
By: md_5 <git@md-5.net>
2017-10-09 18:23:58 +11:00
CraftBukkit/Spigot
dd5c01cf48 SPIGOT-3598: Persist all beacon effects
Regardless of if they are possible in Vanilla by default.

By: blablubbabc <lukas@wirsindwir.de>
2017-10-07 00:27:39 +02:00
CraftBukkit/Spigot
ec331ba7fd Temporarily shift L7 timeout value to L4 value of 30s.
By: md_5 <git@md-5.net>
2017-10-06 20:49:22 +11:00
CraftBukkit/Spigot
70fc6df507 Supress harmless teleport error
By: md_5 <git@md-5.net>
2017-10-01 17:29:03 +11:00
CraftBukkit/Spigot
fee051b1a3 SPIGOT-3571: Packet handling must be synchronous
By: md_5 <git@md-5.net>
2017-09-19 08:00:56 +10:00
CraftBukkit/Spigot
5e3ba4ff73 Update to Minecraft 1.12.2
By: md_5 <git@md-5.net>
2017-09-18 20:00:00 +10:00
CraftBukkit/Spigot
3c5675eaa3 SPIGOT-3513: Correctly set size for freshly spawned Minecarts
By: md_5 <git@md-5.net>
2017-08-16 20:47:23 +10:00
CraftBukkit/Spigot
0d13d3970d Fix a few chunk saving race conditions
* ChunkRegionLoader.c() picks an entry in the save queue, removes that entry from the save queue and then actually writes the entry to the region file. So, between the last two steps, the entry is neither in the save queue nor is it in the region file; if somebody loads the chunk again (with ChunkRegionLoader.loadChunk()) in that gap, they'll get old data. I've delayed the removal until the saving is done.
* ChunkRegionLoader.c() also records the coords of the chunks it's currently saving in this.c. ChunkRegionLoader.a(ChunkCoordIntPair, NBTTagCompound), which adds an entry to the save queue, stops the addition of an entry if its coords are in this.c. Now, I'm guessing that Mojang's intended purpose for this mechanism was to prevent multiple parallel writes for the same chunk. The "stops the addition" bit above should then be something like "block until it's no longer in c"; in fact, the vanilla implementation is "discard the new state of the chunk". I've taken the easy route to solving this, by just making ChunkRegionLoader.c() synchronized (since, in normal use, only the chunk saving thread is in here).

By: Geoff Crossland <gcrossland+bukkit@gmail.com>
2017-08-11 17:27:33 +10:00
CraftBukkit/Spigot
fa26f3f501 SPIGOT-3497: Cancelled EntityPortalEvent leads to incorrect behaviour
By: md_5 <git@md-5.net>
2017-08-08 20:35:29 +10:00
CraftBukkit/Spigot
fafbd8532d SPIGOT-3496, MC-92282: Set mob type of mob-spawner reverts after single spawn wave.
Fixes CreatureSpawner.setSpawnedType and a vanilla issue related to
setting the mob type of a mob-spawner via spawn_egg.

By: Lukas Hennig <lukas@wirsindwir.de>
2017-08-08 04:46:59 +02:00
CraftBukkit/Spigot
89b3d6e8a6 SPIGOT-3491: Add option to bypass permissions in advancements
By: md_5 <git@md-5.net>
2017-08-06 09:07:24 +10:00
CraftBukkit/Spigot
8844b9ade9 Improvements to BlockStates
* Actually capture all the data of TileEntities. This is done by creating a copy of the TileEntity. The methods of BlockState which currently directly access the TileEntity reference will modify the data of that TileEntity-snapshot instead.
* With the call to BlockState.update, the captured TileEntity data gets applied to the current TileEntity in the world.
* Methods which trigger block specific actions will use the current TileEntity from the world.
* CraftBlockState does not hand out the wrapped or the snapshot TileEntity directly. Instead, it provides an applyTo method to copy the data to a given TileEntity and a method to directly get a copy of the TileEntity NBT data represented by the BlockState. CraftMetaBlockState was updated to make use of that.
* Added #getSnapshotInventory() to bukkit which allows modifiying the captured inventory snapshots of containers.
* Tried to clarify which methods only work if the BlockState is placed, which methods require the block in the world to still be of the same type (methods which trigger actions), and that .getInventory() directly modifies the inventory of the block in the world if the BlockState is placed and becomes invalid if the block type is changed.

Backwards compatibility

* If the BlockState acts as InventoryHolder, getInventory() will still return the inventory directly backed by the TileEntity in the world (like before), and not the snapshot inventory. This compromise should reduce the potential of these changes to break existing plugins, or craftbukkit's own use of BlockState.
* The snapshot's inventory can be accessed by a new method getSnapshotInventory()
* In case the BlockState is not placed (if it was retrieved from the MetaBlockState of an item), the getInventory() method will however return the snapshot inventory. So that when the BlockState gets applied back to the item, the inventory changes are properly included.
* With the changes to CraftMetaBlockState it is no longer required to call the update method before passing a modified BlockState to the CraftMetaBlockState. For backwards compatibility the update method will simply return true for a non-placed BlockState, without actually doing anything.

Impact on plugins
* Restoring blocks now actually works as expected, properly restoring the TileEntity data, reglardless if the block changed its type in the meantime.
* Plugins are now consistently required to call the update method in order to apply changes to blocks. Though, regarding the Javadoc they should have been required to do so anyways.
* New feature: Plugins can take and modify inventory snapshots.
* Breaking change: If a plugin gets the BlockState of a block in the world, modifies the inventory returned by .getInventory(), and then tries to use the same BlockState to apply the TileEntity data to an ItemStack block meta, the ItemStack will use the snapshot inventory, disregarding the changes made to the inventory returned by .getInventory(). This is the compromise of .getInventory() returning the inventory directly backed by the TileEntity in the world.

Other fixes related to BlockState:
* TileEntityContainer#getLocation() will run into a NPE if the TileEntity is non-placed (ex. when getting the BlockState from a CraftMetaBlockState).
* Beacon.getEntitiesInRange() would previously throw a NPE if called for a non-placed BlockState. It was changed to now require to be placed and use the current TileEntity in the world. If the TileEntity in the world is no longer a beacon, it will return an empty list.
* EndGateway now supports setting and getting the exit location even for non-placed EndGateways (inside BlockStateMeta) by using / returning a location with world being null.

By: Lukas Hennig <lukas@wirsindwir.de>
2017-08-05 14:37:19 +10:00
CraftBukkit/Spigot
0f46337664 SPIGOT-3492: Ensure player functionality uses their specific scoreboard
By: md_5 <git@md-5.net>
2017-08-05 09:15:52 +10:00
CraftBukkit/Spigot
0cda4f9617 Update to Minecraft 1.12.1
By: md_5 <git@md-5.net>
2017-08-03 23:00:00 +10:00
CraftBukkit/Spigot
19850b49b5 SPIGOT-3486: Missing check in redstone placement
By: md_5 <git@md-5.net>
2017-08-03 08:31:29 +10:00
CraftBukkit/Spigot
6f93c6c962 SPIGOT-3487: Llama doesn't drop chest
By: md_5 <git@md-5.net>
2017-08-03 08:21:05 +10:00
CraftBukkit/Spigot
ead7545014 SPIGOT-3482: ProjectileHitEvent for shulker bullet and llama spit
By: md_5 <git@md-5.net>
2017-08-02 18:05:28 +10:00
CraftBukkit/Spigot
f313e2f969 SPIGOT-3456: Expand calling of ServerCommandEvent
Existing usage preserved by checking sender.

By: md_5 <git@md-5.net>
2017-07-28 18:10:38 +10:00
CraftBukkit/Spigot
75cdf75d3d SPIGOT-3403: Add an EntityPickupItemEvent
By: md_5 <git@md-5.net>
2017-07-28 17:47:59 +10:00
CraftBukkit/Spigot
4ed8997ca1 SPIGOT-3463: Spurious item drops from event
By: md_5 <git@md-5.net>
2017-07-28 17:23:39 +10:00
CraftBukkit/Spigot
aba05b661c SPIGOT-3461: Standardise plugin load timing
By: md_5 <git@md-5.net>
2017-07-26 13:20:29 +10:00
CraftBukkit/Spigot
f4e233550c SPIGOT-3432: Add playNote support for new sounds
By: md_5 <git@md-5.net>
2017-07-24 17:41:08 +10:00
CraftBukkit/Spigot
cdcb11b8ae SPIGOT-3440: Non player entities should not make new portals
By: md_5 <git@md-5.net>
2017-07-22 16:40:10 +10:00
CraftBukkit/Spigot
8bafc76ff2 SPIGOT-3433: Improve AreaEffectCloud#getSource
By: md_5 <git@md-5.net>
2017-07-22 09:51:22 +10:00