Commit graph

3303 commits

Author SHA1 Message Date
CraftBukkit/Spigot
193d17b420 SPIGOT-5647: ZombieVillager entity should have getVillagerType()
By: md_5 <git@md-5.net>
2020-03-30 12:15:21 +11:00
CraftBukkit/Spigot
dd80c73690 SPIGOT-5617: setBlockData does not work when NotPlayEvent is called by redstone current
By: md_5 <git@md-5.net>
2020-03-29 16:24:11 +11:00
CraftBukkit/Spigot
a9cc2e304b #642: Add a DragonBattle API to manipulate respawn phases etc
By: Parker Hawke <hawkeboyz2@hotmail.com>
2020-03-24 19:53:47 +11:00
CraftBukkit/Spigot
bb7a4a3aa5 #644: Fix ChunkMapDistance#removeAllTicketsFor not propagating ticket level updates
Now call the method used in removeTicket for propagating the change,
so that chunks are guaranteed to unload

By: Spottedleaf <Spottedleaf@users.noreply.github.com>
2020-03-22 20:02:22 +11:00
CraftBukkit/Spigot
9d7e810ee1 SPIGOT-5606: call BlockRedstoneEvent for fence gates
By: Jan Boerman <Janboerman95@gmail.com>
2020-03-15 19:05:50 +11:00
CraftBukkit/Spigot
e6566a0503 SPIGOT-5484: Add more spawn tick settings
By: Phoenix616 <mail@moep.tv>
2020-03-07 18:30:21 +01:00
CraftBukkit/Spigot
5ca0965ff4 #640: Fix chunk load/unload callbacks for chunk load cancellations
When a chunk goes from a ticket level where it is loading a
full chunk to an inactive state (i.e ticket level 33 to
ticket level 45) the full status future will be completed
with a "Right" Either (indicating unloaded). However, this
will also schedule the unload callback immediately.

However, the callback is not immediately executed. This means
the next unload/load callback that needs to be scheduled will
fail. The fix applied is to not schedule a callback if the
chunk is not loaded - if the Either is "right."

Even better, due to how completablefuture works, exceptions
are not printed by default. So the exception thrown by the
callback executor was not printed and the failure
hidden from console. This explains why no-one has tracked this issue.
Now the exception is printed so future failures with the
callback system (if any) can be tracked easier.

By: Spottedleaf <Spottedleaf@users.noreply.github.com>
2020-03-02 17:19:06 -08:00
CraftBukkit/Spigot
9b74297f7a Prepare for Java 14
By: md_5 <git@md-5.net>
2020-03-02 13:30:33 +11:00
CraftBukkit/Spigot
e18fd0cff5 #639: Deep clone itemmetas persistent container on clone
After this commit, spigot now creates a deep copy of the
itemmeta's persistent data container when the itemmeta
instance is cloned.

This change fixes the bug that, after cloning itemmeta, the container
instance the cloned meta would point to was equal to the original one.
This resulted in two itemmeta instances sharing a single persistent
container.

By: Bjarne Koll <LynxPlay101@gmail.com>
2020-03-01 17:23:54 +01:00
CraftBukkit/Spigot
035d63bb02 Fix formatting in CraftLivingEntity
By: md_5 <git@md-5.net>
2020-02-23 19:01:11 +11:00
CraftBukkit/Spigot
0814f8bbad #633: Add LivingEntity#attack, LivingEntity#swingMainHand, LivingEntity#swingOffHand
By: konsolas <vincentyntang@gmail.com>
2020-02-19 23:04:55 +00:00
CraftBukkit/Spigot
c98e5fba12 SPIGOT-5591: Allow concurrent potion effects
By: md_5 <git@md-5.net>
2020-02-23 10:33:10 +11:00
CraftBukkit/Spigot
aac54fb8a7 SPIGOT-5592: Custom ChunkGenerator can cause bugged dirt
By: md_5 <git@md-5.net>
2020-02-23 10:29:46 +11:00
CraftBukkit/Spigot
7d47bd7c7f Make it clear in error messages that api-version above 1.13 is also supported
By: md_5 <git@md-5.net>
2020-02-23 09:42:33 +11:00
CraftBukkit/Spigot
153bdf9192 Improve legacy conversion of some materials that changed post flattening
By: md_5 <git@md-5.net>
2020-02-21 12:13:05 +11:00
CraftBukkit/Spigot
c4c8db5127 Move Bukkit.Aware loading/saving to correct location
By: md_5 <git@md-5.net>
2020-02-21 10:09:47 +11:00
CraftBukkit/Spigot
2a55fc03dd SPIGOT-5311: Add API to get/set item associated with throwable projectiles
By: Lars Dormans <lars.dormans@live.nl>
2020-02-21 09:53:51 +11:00
CraftBukkit/Spigot
38b42f0479 #634: Cross platform patch scripts
Removes the need for installing gnu sed on Mac

By: konsolas <vincentyntang@gmail.com>
2020-02-19 22:50:56 +00:00
CraftBukkit/Spigot
39966685a6 Add set/isAware to disable Vanilla AI components of a Mob
By: konsolas <vincentyntang@gmail.com>
2020-02-19 10:50:21 +00:00
CraftBukkit/Spigot
3e008424f2 SPIGOT-5468: Beehive TileEntity was not loaded for BlockStateMeta
By: Brokkonaut <hannos17@gmx.de>
2020-02-17 18:08:10 +01:00
CraftBukkit/Spigot
6b4ea66b11 SPIGOT-5573, SPIGOT-5574: Move CustomChunkGenerator generation code back to buildBase()
By: konsolas <vincentyntang@gmail.com>
2020-02-12 17:58:50 +00:00
CraftBukkit/Spigot
e714c00b96 SPIGOT-5572: Fix console/API completion of Vanilla commands
By: md_5 <git@md-5.net>
2020-02-11 12:03:36 +11:00
CraftBukkit/Spigot
416eb5c343 SPIGOT-5571: Beehive MaxEntities cannot be set back to 3
By: ShaneBee <shanebolenback@me.com>
2020-02-09 19:49:35 -08:00
CraftBukkit/Spigot
6b39c5d083 SPIGOT-5468: Improve Beehive TileEntity API
By: ShaneBee <shanebolenback@me.com>
2020-02-09 10:47:11 +11:00
CraftBukkit/Spigot
13b8a2aea1 #624: Add an API for passing the heightmap to getHighestBlockAt* method
By: ysl3000 <yannicklamprecht@live.de>
2020-02-09 10:31:07 +11:00
CraftBukkit/Spigot
ab4f7e3436 MC-135989, SPIGOT-5564: Don't kick players for flight while riptiding
By: konsolas <vincentyntang@gmail.com>
2020-02-07 20:19:24 +11:00
CraftBukkit/Spigot
4eb5ed272f SPIGOT-5558: Fix World#getHighestBlockAt, previously off by +1
By: ysl3000 <yannicklamprecht@live.de>
2020-02-03 09:42:48 +11:00
CraftBukkit/Spigot
9adbf6f88b Remove unused seed in CustomChunkGenerator
By: md_5 <git@md-5.net>
2020-02-02 19:32:36 +11:00
CraftBukkit/Spigot
49baa3c19c #619: Allow delegation of certain elements to Vanilla when using a custom ChunkGenerator
Allows delegation of caves, decorations, mobs and structures to the Vanilla generation algorithms.
Overriding these methods to return true enables that aspect of Vanilla generation, which is applied after the ChunkGenerator's custom generation.

By: konsolas <vincentyntang@gmail.com>
2020-02-02 19:27:10 +11:00
CraftBukkit/Spigot
1705694b06 Craftbukkit -> CraftBukkit
By: md_5 <git@md-5.net>
2020-02-02 11:18:17 +11:00
CraftBukkit/Spigot
0b8e05b835 SPIGOT-5559: Add EntityPotionEffectEvent causes for bee, raiders and wither rose
By: ShaneBee <shanebolenback@me.com>
2020-02-02 11:16:01 +11:00
CraftBukkit/Spigot
0bee4968bb #618: Add method to remove a recipe by its key
By: ShaneBee <shanebolenback@me.com>
2020-02-02 10:32:49 +11:00
CraftBukkit/Spigot
c03616905c SPIGOT-5556: Some biome methods use incorrect positions
See SPIGOT-5529

By: md_5 <git@md-5.net>
2020-02-01 17:30:40 +11:00
CraftBukkit/Spigot
70e7ee9775 Update checkstyle
By: md_5 <git@md-5.net>
2020-02-01 09:32:26 +11:00
CraftBukkit/Spigot
259935c4f7 Print legacy load reason in debug mode
By: md_5 <git@md-5.net>
2020-01-31 19:20:02 +11:00
CraftBukkit/Spigot
7867f1cb3e SPIGOT-5554: Clear error message when BossBar is used for not fully joined players
By: md_5 <git@md-5.net>
2020-01-31 08:36:59 +11:00
CraftBukkit/Spigot
c21bbaedfa Update scriptus
By: md_5 <git@md-5.net>
2020-01-29 16:40:40 +11:00
CraftBukkit/Spigot
fe92a3fcfd Clean up CraftBlockData.toString
By: md_5 <git@md-5.net>
2020-01-29 09:53:13 +11:00
CraftBukkit/Spigot
e2093ed2c6 SPIGOT-5551: BlockState.setData fails when used by legacy plugin
By: md_5 <git@md-5.net>
2020-01-29 09:22:43 +11:00
CraftBukkit/Spigot
959b2adc98 SPIGOT-5550: Cancelled ProjectileLaunchEvent still plays sound for eggs
By: md_5 <git@md-5.net>
2020-01-28 16:22:09 +11:00
CraftBukkit/Spigot
443580395d SPIGOT-5538: Using javaw to run GUI prints input error
By: md_5 <git@md-5.net>
2020-01-28 10:36:47 +11:00
CraftBukkit/Spigot
26c35202a0 SPIGOT-5526: Call EntityEnterBlockEvent for bees trying to enter hives
By: BlackHole <black-hole@live.com>
2020-01-22 18:34:03 +01:00
CraftBukkit/Spigot
e0ee6f0a50 SPIGOT-5537: Bee nests generated by growing trees near flower have no bees
By: md_5 <git@md-5.net>
2020-01-28 09:48:28 +11:00
CraftBukkit/Spigot
37d58b321b Remove unused CraftWorld.getId method
By: md_5 <git@md-5.net>
2020-01-27 19:30:17 +11:00
CraftBukkit/Spigot
42e9529365 Change some block == AIR checks to isAir to catch CAVE_AIR
By: md_5 <git@md-5.net>
2020-01-27 10:09:46 +11:00
CraftBukkit/Spigot
6037f360e7 SPIGOT-5542: Cancelling EntityToggleGlideEvent doesn't stop client from gliding
By: md_5 <git@md-5.net>
2020-01-25 11:30:39 +11:00
CraftBukkit/Spigot
1cd6af40ab SPIGOT-5514: VehicleEntityCollisionEvent triggered by passengers
By: Lars Dormans <lars.dormans@live.nl>
2020-01-24 16:48:48 +11:00
CraftBukkit/Spigot
77bc265e5b SPIGOT-5536: Material.values() causes legacy data init
By: md_5 <git@md-5.net>
2020-01-23 08:53:36 +11:00
CraftBukkit/Spigot
8ef307d13e SPIGOT-5532: Material.values() yields an exception
By: md_5 <git@md-5.net>
2020-01-22 13:23:55 +11:00
CraftBukkit/Spigot
b978d253d9 Only load legacy support data if something uses it
By: md_5 <git@md-5.net>
2020-01-22 11:15:58 +11:00