Commit Graph

3710 Commits

Author SHA1 Message Date
md_5
2fae23c251 SPIGOT-3637: Adjust yaw yet again 2017-11-07 17:21:38 +11:00
md_5
53fccdf958 Database drivers should be runtime depends 2017-10-29 09:31:22 +11:00
md_5
86fdf92ca8 Update SQLite to 3.20.1 2017-10-28 16:36:03 +11:00
md_5
1257322d1f SPIGOT-3622: Issue in some combinations of spawn protection 2017-10-28 16:00:15 +11:00
md_5
31d3159f04 SPIGOT-3613: Success count not reset for exceptions. 2017-10-17 21:08:43 +11:00
md_5
b8f84f375b Fix bad diff 2017-10-13 21:47:55 +11:00
md_5
ef2f38267f SPIGOT-3607: Bad yaw from armorstands treated as living 2017-10-13 21:36:32 +11:00
md_5
9ab758c7b6 SPIGOT-3605: Spawn eggs not saving internal data 2017-10-09 18:32:45 +11:00
md_5
6733aa5635 SPIGOT-3603: Fix client timing out in scenarios where it sends no packets. 2017-10-09 18:23:58 +11:00
md_5
30da15647f Fix zombie professions 2017-10-09 18:18:11 +11:00
blablubbabc
f8500c0a3e SPIGOT-3598: Persist all beacon effects
Regardless of if they are possible in Vanilla by default.
2017-10-07 18:48:08 +11:00
md_5
e8b6e4f29b Temporarily shift L7 timeout value to L4 value of 30s. 2017-10-06 20:49:22 +11:00
md_5
362ed329f0 Supress harmless teleport error 2017-10-01 17:29:03 +11:00
md_5
59fa98bfb7 SPIGOT-3587: Set head rotation when spawning entity 2017-10-01 11:01:49 +11:00
md_5
a3b3a421ac SPIGOT-3565: Head yaw is "more accurate" for living entities 2017-09-28 16:23:14 +10:00
blablubbabc
ee91bce157 Fix active async tasks not cancelled by CraftScheduler#cancelTasks(Plugin) 2017-09-28 16:18:45 +10:00
md_5
94b0980852 SPIGOT-3571: Packet handling must be synchronous 2017-09-19 08:00:56 +10:00
md_5
9a1f5ee80a Update to Minecraft 1.12.2 2017-09-18 20:00:00 +10:00
md_5
8f472147b7 Remove outdated build delay. 2017-09-14 21:39:04 +10:00
md_5
876d22cd55 SPIGOT-3561: Fix selectors in SuccessCount 2017-09-09 12:51:18 +10:00
md_5
9e3636d82a SPIGOT-3553: Add OfflinePlayer based methods to SkullMeta 2017-09-06 16:14:37 +10:00
md_5
178caf9ac2 SPIGOT-3551: Recursively unrestrict advancements 2017-09-06 16:07:41 +10:00
blablubbabc
bde2a93cfe Add BukkitTask#isCancelled 2017-09-02 17:04:29 +10:00
md_5
8bf06d6cbf Upgrade to Netty 4.1.15.Final 2017-08-31 07:50:10 +10:00
Jannyboy11
79e55b6dcf SPIGOT-1107: Shift clicking and delegation for custom inventories
PR #398
2017-08-18 18:54:49 +10:00
md_5
357b573a19 SPIGOT-3513: Correctly set size for freshly spawned Minecarts 2017-08-16 20:47:23 +10:00
Geoff Crossland
963b19c599 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).
2017-08-11 17:34:19 +10:00
md_5
27b8bf9116 SPIGOT-3497: Cancelled EntityPortalEvent leads to incorrect behaviour 2017-08-08 20:35:29 +10:00
Lukas Hennig
61a31ca0c7 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.
2017-08-08 20:34:15 +10:00
Lukas Hennig
e1f296d115 Fix CraftBanner initialisation. 2017-08-07 17:55:47 +10:00
md_5
b5878783ad SPIGOT-3491: Add option to bypass permissions in advancements 2017-08-06 09:07:24 +10:00
md_5
571760182f Update misc depends 2017-08-05 14:56:57 +10:00
Lukas Hennig
19507baf8b 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.
2017-08-05 14:37:19 +10:00
md_5
63029f4ff3 SPIGOT-3492: Ensure player functionality uses their specific scoreboard 2017-08-05 09:15:52 +10:00
md_5
20ab5d3d10 Add build delay back 2017-08-04 16:09:17 +10:00
md_5
2a927e8638 Update to Minecraft 1.12.1 2017-08-03 23:00:00 +10:00
md_5
9a1fc1e2ee Remove outdated build delay. 2017-08-03 21:10:43 +10:00
md_5
57c323aad1 SPIGOT-3486: Missing check in redstone placement 2017-08-03 08:31:29 +10:00
md_5
b5dc294d32 SPIGOT-3485: Launch shulker bullets as projectiles 2017-08-03 08:23:27 +10:00
md_5
2cfb85dae2 SPIGOT-3487: Llama doesn't drop chest 2017-08-03 08:21:05 +10:00
md_5
86aa17fae1 SPIGOT-3482: ProjectileHitEvent for shulker bullet and llama spit 2017-08-02 18:05:28 +10:00
md_5
2c5c611d0c SPIGOT-3456: Expand calling of ServerCommandEvent
Existing usage preserved by checking sender.
2017-07-28 18:10:38 +10:00
md_5
d00c0574cd SPIGOT-3403: Add an EntityPickupItemEvent 2017-07-28 17:47:59 +10:00
md_5
5c4864398d SPIGOT-3463: Spurious item drops from event 2017-07-28 17:23:39 +10:00
BillyGalbreath
d2aa6845f0 Implement BroadcastMessageEvent 2017-07-28 16:53:43 +10:00
md_5
b1b9ab0df9 SPIGOT-3461: Standardise plugin load timing 2017-07-26 13:20:29 +10:00
md_5
d35483b0e1 Correct scheduler behaviour with intervals of >= Integer.MAX_VALUE (circa 3 years). 2017-07-25 15:36:44 +10:00
md_5
4670a84bd9 SPIGOT-3432: Add playNote support for new sounds 2017-07-24 17:44:44 +10:00
md_5
f078eed54b SPIGOT-3440: Non player entities should not make new portals 2017-07-22 16:40:10 +10:00
md_5
5a12442f22 SPIGOT-3433: Improve AreaEffectCloud#getSource 2017-07-22 09:51:22 +10:00