3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-29 09:30:07 +01:00
Commit graph

4643 Commits

Autor SHA1 Nachricht Datum
Parker Hawke
fc318cc10e : Add a DragonBattle API to manipulate respawn phases etc 2020-03-24 19:53:47 +11:00
Spottedleaf
796eb15a5b : 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
2020-03-22 20:02:22 +11:00
Jan Boerman
a6f809378c SPIGOT-5606: call BlockRedstoneEvent for fence gates 2020-03-15 19:05:50 +11:00
Phoenix616
fc24934098 SPIGOT-5484: Add more spawn tick settings 2020-03-08 19:43:47 +11:00
Spottedleaf
7f61a2526e : 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.
2020-03-06 14:34:13 +11:00
md_5
13ed05decd Prepare for Java 14 2020-03-02 13:30:33 +11:00
Bjarne Koll
6b00b14539 : 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.
2020-03-02 13:10:21 +11:00
md_5
3d61a853e3 Fix formatting in CraftLivingEntity 2020-02-23 19:01:11 +11:00
konsolas
f7ab30557e : Add LivingEntity#attack, LivingEntity#swingMainHand, LivingEntity#swingOffHand 2020-02-23 19:00:18 +11:00
md_5
d5ef2eab9e SPIGOT-5591: Allow concurrent potion effects 2020-02-23 10:33:10 +11:00
md_5
25a9a9ff62 SPIGOT-5592: Custom ChunkGenerator can cause bugged dirt 2020-02-23 10:29:46 +11:00
md_5
3f6d0de989 Make it clear in error messages that api-version above 1.13 is also supported 2020-02-23 09:42:33 +11:00
md_5
fba9f4876b Improve legacy conversion of some materials that changed post flattening 2020-02-21 12:13:05 +11:00
md_5
b1ba874912 Move Bukkit.Aware loading/saving to correct location 2020-02-21 10:09:47 +11:00
Lars Dormans
f7cdb53c0e SPIGOT-5311: Add API to get/set item associated with throwable projectiles 2020-02-21 09:53:51 +11:00
konsolas
689f429c50 : Cross platform patch scripts
Removes the need for installing gnu sed on Mac
2020-02-20 10:58:01 +11:00
konsolas
ab85433d7f Add set/isAware to disable Vanilla AI components of a Mob 2020-02-20 09:19:59 +11:00
Brokkonaut
918061b75c SPIGOT-5468: Beehive TileEntity was not loaded for BlockStateMeta 2020-02-17 18:08:10 +01:00
konsolas
37f32da8f8 SPIGOT-5573, SPIGOT-5574: Move CustomChunkGenerator generation code back to buildBase() 2020-02-13 09:04:28 +11:00
md_5
d171d7eb8e SPIGOT-5572: Fix console/API completion of Vanilla commands 2020-02-11 12:03:36 +11:00
ShaneBee
880190573c SPIGOT-5571: Beehive MaxEntities cannot be set back to 3 2020-02-10 16:24:11 +11:00
ShaneBee
708be69539 SPIGOT-5468: Improve Beehive TileEntity API 2020-02-09 10:47:11 +11:00
ysl3000
2d151f4c33 : Add an API for passing the heightmap to getHighestBlockAt* method 2020-02-09 10:32:24 +11:00
konsolas
c98538940d MC-135989, SPIGOT-5564: Don't kick players for flight while riptiding 2020-02-07 20:19:24 +11:00
ysl3000
807a677e9a SPIGOT-5558: Fix World#getHighestBlockAt, previously off by +1 2020-02-03 09:42:48 +11:00
md_5
d70084e53d Remove unused seed in CustomChunkGenerator 2020-02-02 19:32:36 +11:00
konsolas
8a66d4c7ac : 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.
2020-02-02 19:27:10 +11:00
md_5
c2dc19d385 Craftbukkit -> CraftBukkit 2020-02-02 11:18:17 +11:00
ShaneBee
ae45e09223 SPIGOT-5559: Add EntityPotionEffectEvent causes for bee, raiders and wither rose 2020-02-02 11:16:01 +11:00
ShaneBee
0098037647 : Add method to remove a recipe by its key 2020-02-02 10:32:49 +11:00
md_5
e82b5477ae SPIGOT-5556: Some biome methods use incorrect positions
See SPIGOT-5529
2020-02-01 17:30:40 +11:00
md_5
544ccdc588 Update checkstyle 2020-02-01 09:32:26 +11:00
md_5
512ff7a52f Print legacy load reason in debug mode 2020-01-31 19:32:57 +11:00
md_5
df371c1b69 SPIGOT-5554: Clear error message when BossBar is used for not fully joined players 2020-01-31 08:36:59 +11:00
md_5
18168500ea Update scriptus 2020-01-29 16:40:40 +11:00
md_5
6bbb4e7348 Clean up CraftBlockData.toString 2020-01-29 09:53:13 +11:00
md_5
b1e96bd5ca SPIGOT-5551: BlockState.setData fails when used by legacy plugin 2020-01-29 09:22:43 +11:00
md_5
ab13a117a9 SPIGOT-5550: Cancelled ProjectileLaunchEvent still plays sound for eggs 2020-01-28 16:22:09 +11:00
md_5
44016b1dfc SPIGOT-5538: Using javaw to run GUI prints input error 2020-01-28 10:36:47 +11:00
BlackHole
e653ae7669 SPIGOT-5526: Call EntityEnterBlockEvent for bees trying to enter hives 2020-01-28 09:58:36 +11:00
md_5
6515ea4957 SPIGOT-5537: Bee nests generated by growing trees near flower have no bees 2020-01-28 09:48:28 +11:00
md_5
d82b314944 Remove unused CraftWorld.getId method 2020-01-27 19:30:17 +11:00
md_5
10763a88ba Change some block == AIR checks to isAir to catch CAVE_AIR 2020-01-27 10:09:46 +11:00
md_5
e911c70f85 SPIGOT-5542: Cancelling EntityToggleGlideEvent doesn't stop client from gliding 2020-01-25 11:30:39 +11:00
Lars Dormans
596b0b2d07 SPIGOT-5514: VehicleEntityCollisionEvent triggered by passengers 2020-01-24 16:48:48 +11:00
md_5
a0e88fb362 SPIGOT-5536: Material.values() causes legacy data init 2020-01-23 08:53:36 +11:00
md_5
a81f6ed397 SPIGOT-5532: Material.values() yields an exception 2020-01-22 13:23:55 +11:00
md_5
efd6cf55fc Only load legacy support data if something uses it 2020-01-22 11:15:58 +11:00
md_5
29737ccbd2 SPIGOT-5531: Fix --universe option 2020-01-22 10:36:35 +11:00
md_5
8160e299d0 Strip ANSI colours from ServerGUI 2020-01-22 09:33:40 +11:00