Commit graph

3640 commits

Author SHA1 Message Date
CraftBukkit/Spigot
dd4241f9af SPIGOT-6111: NPE in CraftHumanEntity#openWorkbench & CraftHumanEntity#openEnchanting
By: md_5 <git@md-5.net>
2020-08-27 18:32:52 +10:00
CraftBukkit/Spigot
e0cf9c89be Add note to CONTRIBUTING.md to suggest keeping commit messages / titles the same
By: md_5 <git@md-5.net>
2020-08-27 11:46:34 +10:00
CraftBukkit/Spigot
4cff3eb04c #721: Add EntityCategory API to LivingEntity
By: Parker Hawke <hawkeboyz2@hotmail.com>
2020-08-27 11:42:39 +10:00
CraftBukkit/Spigot
c49ac166f7 #702: Add Block#applyBoneMeal()
By: Parker Hawke <hawkeboyz2@hotmail.com>
2020-08-27 11:27:13 +10:00
CraftBukkit/Spigot
b734aa8117 #716: Fix barrel open API playing sound twice
By: jameslfc19 <jameslfc19@gmail.com>
2020-08-27 11:16:27 +10:00
CraftBukkit/Spigot
88604e90cd #711: Add Full RGB support to the console
This is a fairly hacky way to do this - primarily because the Ansi library doesnt support RGB - however the VT100 codes here are the standard for RGB terminals.

By: Narimm <benjicharlton@gmail.com>
2020-08-27 11:11:40 +10:00
CraftBukkit/Spigot
2ab3e90ea5 SPIGOT-6101: Store persist state of entities
By: Brokkonaut <hannos17@gmx.de>
2020-08-26 18:20:58 +10:00
CraftBukkit/Spigot
580014ebbf SPIGOT-6103: Summoning an Eye of Ender throw an Error
By: md_5 <git@md-5.net>
2020-08-26 18:20:19 +10:00
CraftBukkit/Spigot
ce3cd796d5 SPIGOT-6099: PlayerPortalEvent.setTo ignores world for end portal travel
By: md_5 <git@md-5.net>
2020-08-26 18:14:49 +10:00
CraftBukkit/Spigot
0dc71b0b4c SPIGOT-6097: Zoglins not attacking mobs
By: md_5 <git@md-5.net>
2020-08-23 19:14:58 +10:00
CraftBukkit/Spigot
8a80efc01d SPIGOT-974: Add ArmorStand locking API
By: Martoph <sager1018@gmail.com>
2020-08-23 09:53:19 +10:00
CraftBukkit/Spigot
4625e066e8 Also make field volatile
By: md_5 <git@md-5.net>
2020-08-22 18:23:49 +10:00
CraftBukkit/Spigot
513f8d1690 SPIGOT-6094: Error loading datapack functions
By: md_5 <git@md-5.net>
2020-08-22 18:19:25 +10:00
CraftBukkit/Spigot
c87b44f451 SPIGOT-6092: Player#setBedSpawnLocation - NullPointerException
By: Parker Hawke <hawkeboyz2@hotmail.com>
2020-08-22 17:42:15 +10:00
CraftBukkit/Spigot
886d2e1504 SPIGOT-6093: Can't change ItemStack in EntityPickupItemEvent
By: Shane Bee <shanebolenback@me.com>
2020-08-21 18:46:42 +10:00
CraftBukkit/Spigot
9262b0c735 Increase outdated build delay
By: md_5 <git@md-5.net>
2020-08-20 19:31:48 +10:00
CraftBukkit/Spigot
634b782744 SPIGOT-6086: Twisting vines growing at top of world crashes server
By: md_5 <git@md-5.net>
2020-08-20 18:48:38 +10:00
CraftBukkit/Spigot
1511bbcc2c SPIGOT-6091: End platform does not generate
By: md_5 <git@md-5.net>
2020-08-20 18:48:20 +10:00
CraftBukkit/Spigot
48770ca8fe SPIGOT-6087: Revert "SPIGOT-6086: Twisting vines growing at top of world crashes server"
This reverts commit af2cee1e50.

By: md_5 <git@md-5.net>
2020-08-18 20:43:39 +10:00
CraftBukkit/Spigot
97ee937438 #730: Let World#setSpawnLocation() support an angle
By: Parker Hawke <hawkeboyz2@hotmail.com>
2020-08-18 17:54:36 +10:00
CraftBukkit/Spigot
af2cee1e50 SPIGOT-6086: Twisting vines growing at top of world crashes server
By: md_5 <git@md-5.net>
2020-08-18 17:50:13 +10:00
CraftBukkit/Spigot
5d4868ed96 SPIGOT-6075: Snowballs don't destroy Ender Crystals
By: Parker Hawke <hawkeboyz2@hotmail.com>
2020-08-17 18:55:38 +10:00
CraftBukkit/Spigot
6513713dff Don't create custom registry for custom worlds
By: md_5 <git@md-5.net>
2020-08-17 18:48:00 +10:00
CraftBukkit/Spigot
7879320af0 SPIGOT-6076: Crash when updating blocks in uninitialized chunk sections
By: md_5 <git@md-5.net>
2020-08-16 18:07:42 +10:00
CraftBukkit/Spigot
37c904553d Cleanup sendBlockChange
By: md_5 <git@md-5.net>
2020-08-16 17:55:55 +10:00
CraftBukkit/Spigot
56d055fb45 #726: Add Inventory#isEmpty()
By: Parker Hawke <hawkeboyz2@hotmail.com>
2020-08-16 11:21:08 +10:00
CraftBukkit/Spigot
a58824a3d9 #725: HumanEntity - add a method to make the entity drop the item they're holding
By: Shane Bee <shanebolenback@me.com>
2020-08-16 09:32:47 +10:00
CraftBukkit/Spigot
d44eec6c38 #723: Implement EntitySpellCastEvent for spellcaster illager
By: Parker Hawke <hawkeboyz2@hotmail.com>
2020-08-15 09:12:20 +10:00
CraftBukkit/Spigot
c9673f0556 #724: Re-implement player portal event search radius and creation API
This also fixes that the nether/end portals would be created even if the
event was cancelled as well as that the EntityPortalEvent would be
called for player portal usage which is not according to its API
specification

By: Phoenix616 <max@themoep.de>
2020-08-14 08:26:40 +10:00
CraftBukkit/Spigot
44ebf1c058 SPIGOT-4705: Revamp Ageable interface and add Breedable interface
By: Shane Bee <shanebolenback@me.com>
2020-08-13 11:18:47 +10:00
CraftBukkit/Spigot
5b931c0da0 Fix nether portal ignition
By: md_5 <git@md-5.net>
2020-08-12 16:40:43 +10:00
CraftBukkit/Spigot
6c307816d0 SPIGOT-6064: world.getBiome() null Error
By: md_5 <git@md-5.net>
2020-08-12 10:50:20 +10:00
CraftBukkit/Spigot
86bf456dfd Fix crash with composters
By: md_5 <git@md-5.net>
2020-08-12 09:22:28 +10:00
CraftBukkit/Spigot
fb04a1aa50 Fix crash growing saplings
By: md_5 <git@md-5.net>
2020-08-12 08:54:53 +10:00
CraftBukkit/Spigot
21a3b67be9 SPIGOT-6061: NPE in CraftBlockTag.getHandle()
By: md_5 <git@md-5.net>
2020-08-12 08:44:09 +10:00
CraftBukkit/Spigot
6a9e00d4b6 Update to Minecraft 1.16.2
By: md_5 <git@md-5.net>
2020-08-12 07:00:00 +10:00
CraftBukkit/Spigot
5e5f7f19dc Remove outdated build delay.
By: md_5 <git@md-5.net>
2020-08-11 17:36:51 +10:00
CraftBukkit/Spigot
77e7e63eae SPIGOT-6053: World#setHardcore() cannot be set to false
By: Parker Hawke <hawkeboyz2@hotmail.com>
2020-08-11 17:35:56 +10:00
CraftBukkit/Spigot
b2b8fee81f SPIGOT-3020: Fix issue with BlockBreakEvent throwing AssertionError when setting a player's tool to AIR/NULL
By: Shane Bee <shanebolenback@me.com>
2020-08-09 18:42:07 +10:00
CraftBukkit/Spigot
c555653b93 #660: Add support to change block's lid state
By: jameslfc19 <jameslfc19@gmail.com>
2020-07-29 19:41:00 +10:00
CraftBukkit/Spigot
a9f92a7086 SPIGOT-6032: Add best effort target events for new entities
By: md_5 <git@md-5.net>
2020-07-28 19:05:03 +10:00
CraftBukkit/Spigot
c7807b4048 SPIGOT-6033: Bukkit.getUnsafe().getMaterial() won't match renamed block materials
By: md_5 <git@md-5.net>
2020-07-28 18:22:34 +10:00
CraftBukkit/Spigot
12f69c99cf SPIGOT-6034: World.getWorldFolder() includes the dot in the path
By: md_5 <git@md-5.net>
2020-07-28 18:04:06 +10:00
CraftBukkit/Spigot
f816dd6f41 SPIGOT-6029: RGB Hex colors not respected with custom kick messages
By: md_5 <git@md-5.net>
2020-07-27 20:48:05 +10:00
CraftBukkit/Spigot
2b52833726 SPIGOT-6011: End Gateways do not work on Non-Main End Worlds
By: md_5 <git@md-5.net>
2020-07-22 18:48:16 +10:00
CraftBukkit/Spigot
bf2f8ae9a7 SPIGOT-6015: Small Armor Stand doesn't drop items
By: md_5 <git@md-5.net>
2020-07-22 18:45:52 +10:00
CraftBukkit/Spigot
4724de7678 SPIGOT-5950: Add PrepareSmithingEvent event
By: jameslfc19 <jameslfc19@gmail.com>
2020-07-22 18:21:45 +10:00
CraftBukkit/Spigot
70fb3b5056 #714: Added getRecipe() method to retrieve a Recipe by it's NamespacedKey
By: jameslfc19 <jameslfc19@gmail.com>
2020-07-22 18:14:58 +10:00
CraftBukkit/Spigot
95dbba65c7 SPIGOT-6001: Hex colors format differently to traditional colours
By: md_5 <git@md-5.net>
2020-07-19 08:44:42 +10:00
CraftBukkit/Spigot
585c6e1fb3 Increase outdated build delay to 3 weeks
By: md_5 <git@md-5.net>
2020-07-18 17:46:54 +10:00
CraftBukkit/Spigot
deab30f8b2 SPIGOT-5901: Improve multiworld support
By: md_5 <git@md-5.net>
2020-07-17 08:56:56 +10:00
CraftBukkit/Spigot
f313337709 SPIGOT-5976: Bees do not exit naturally spawned hives
By: md_5 <git@md-5.net>
2020-07-11 09:45:00 +10:00
CraftBukkit/Spigot
0796e55598 #704: Added explicit API to stop a Jukebox from playing
By: Matthew Miller <mnmiller1@me.com>
2020-07-10 09:02:21 +10:00
CraftBukkit/Spigot
b5dd5d4199 SPIGOT-5972: PlayerPortalEvent.setTo() when returning through an End Portal Crashes Server
By: md_5 <git@md-5.net>
2020-07-09 19:11:45 +10:00
CraftBukkit/Spigot
83b1ab97ca SPIGOT-5965: BlockRedstoneEvent.setNewCurrent(0) crashes server
By: md_5 <git@md-5.net>
2020-07-09 09:12:57 +10:00
CraftBukkit/Spigot
666f651058 SPIGOT-5968: Killer rabbits can't be set to the non-killer rabbit behavior
By: md_5 <git@md-5.net>
2020-07-09 09:04:11 +10:00
CraftBukkit/Spigot
7f2d17c68a #705: Improve implementation of furnace related block states
CraftFurnace is the base class for all concrete types of furnaces (this
mimics Minecraft's underlying type hierarchy). It is marked as abstract
now to avoid accidental instantiation.

Also, the various furnace sub types were missing type parameters.

By: blablubbabc <lukas@wirsindwir.de>
2020-07-09 08:49:55 +10:00
CraftBukkit/Spigot
8cb1e21c2b SPIGOT-5969: Update maximum structure block size
By: blablubbabc <lukas@wirsindwir.de>
2020-07-09 08:46:32 +10:00
CraftBukkit/Spigot
0711e168a1 Improve physics code
By: md_5 <git@md-5.net>
2020-07-07 09:35:47 +10:00
CraftBukkit/Spigot
b482319b4b SPIGOT-5951: Projectile#getShooter() returns null
By: md_5 <git@md-5.net>
2020-07-06 17:51:33 +10:00
CraftBukkit/Spigot
cb5bf362be SPIGOT-5948: EntityDropItemEvent does not fire when piglins drop an item
By: md_5 <git@md-5.net>
2020-07-06 09:30:16 +10:00
CraftBukkit/Spigot
ea087050bf Fix crash involving fireballs
By: md_5 <git@md-5.net>
2020-07-06 08:50:27 +10:00
CraftBukkit/Spigot
0c3466316f SPIGOT-5943: Calling get BlockStateMeta#getBlockState causes NPE with shield with banner
By: md_5 <git@md-5.net>
2020-07-05 11:35:20 +10:00
CraftBukkit/Spigot
404d0946d6 Fix end portals in custom ends
By: md_5 <git@md-5.net>
2020-07-05 10:32:31 +10:00
CraftBukkit/Spigot
1640c95e68 SPIGOT-5939: EntityPortalEnterEvent not fired for end portal if end disabled
By: md_5 <git@md-5.net>
2020-07-05 09:00:43 +10:00
CraftBukkit/Spigot
d42ccbabb8 Increase outdated build delay to 7 days
By: md_5 <git@md-5.net>
2020-07-05 08:53:54 +10:00
CraftBukkit/Spigot
1300c5190c SPIGOT-5940: EntityChangeBlockEvent is not called for villager emptying composter
By: md_5 <git@md-5.net>
2020-07-05 08:53:26 +10:00
CraftBukkit/Spigot
d735284e3c SPIGOT-5936: BlockPlaceEvent does not fire for lily_pad
By: md_5 <git@md-5.net>
2020-07-04 09:02:19 +10:00
CraftBukkit/Spigot
6edd913305 #676: Add PlayerHarvestBlockEvent
By: DiamondDagger590 <diamonddagger590@gmail.com>
2020-07-03 15:07:15 +10:00
CraftBukkit/Spigot
e8d9474f7b SPIGOT-5929: Angered zombified piglins do not inherit killed_by_player status
By: md_5 <git@md-5.net>
2020-07-03 10:11:34 +10:00
CraftBukkit/Spigot
bd9f850346 SPIGOT-5930: Add PlayerRespawnEvent#isAnchorSpawn
By: md_5 <git@md-5.net>
2020-07-03 09:54:05 +10:00
CraftBukkit/Spigot
7d66dc54c4 SPIGOT-5867, MC-193339: NPE during shutdown when rcon enabled with no password
By: md_5 <git@md-5.net>
2020-07-03 09:23:33 +10:00
CraftBukkit/Spigot
e934f57adf SPIGOT-5927: Some items NBT data disappears
By: md_5 <git@md-5.net>
2020-07-03 09:14:34 +10:00
CraftBukkit/Spigot
405cbc4ec8 SPIGOT-5921: Improve setNoDamageTicks for Players
By: md_5 <git@md-5.net>
2020-07-02 11:18:03 +10:00
CraftBukkit/Spigot
ff07d4cc6f SPIGOT-5922: Smithing recipes not registering
By: md_5 <git@md-5.net>
2020-07-02 11:16:48 +10:00
CraftBukkit/Spigot
a13bf3a57f SPIGOT-5900: Add test for the order of Material enum entries
By: Ben Woodworth <ben@benwoodworth.net>
2020-07-02 09:34:13 +10:00
CraftBukkit/Spigot
65e8faf29a #682: Add hasDiscoveredRecipe() and getDiscoveredRecipes()
By: Parker Hawke <hawkeboyz2@hotmail.com>
2020-07-02 09:27:18 +10:00
CraftBukkit/Spigot
182e057932 Change outdated build delay to 3 days
By: md_5 <git@md-5.net>
2020-07-02 09:07:18 +10:00
CraftBukkit/Spigot
fbb02f52f2 Improve code formatting
By: md_5 <git@md-5.net>
2020-07-01 14:17:48 +10:00
CraftBukkit/Spigot
d8ea824b93 SPIGOT-5913: MOTD no longer supports new line character
By: md_5 <git@md-5.net>
2020-07-01 14:00:02 +10:00
CraftBukkit/Spigot
c6249c09b0 SPIGOT-5908: CompassMeta for new lodestone compass data
By: md_5 <git@md-5.net>
2020-07-01 10:48:37 +10:00
CraftBukkit/Spigot
178090a153 SPIGOT-5907: Item Frame NBT data disappears
By: md_5 <git@md-5.net>
2020-07-01 10:00:24 +10:00
CraftBukkit/Spigot
df534616e3 SPIGOT-5906: Huge Fungi tree generation
By: md_5 <git@md-5.net>
2020-07-01 09:50:58 +10:00
CraftBukkit/Spigot
13405b5ce1 Fix event for unlucky composts
By: md_5 <git@md-5.net>
2020-07-01 09:36:38 +10:00
CraftBukkit/Spigot
29e9b2396b SPIGOT-5910: loadAdvancement does not work
By: md_5 <git@md-5.net>
2020-07-01 09:33:50 +10:00
CraftBukkit/Spigot
ea9a50356a SPIGOT-5905: Fix hex colours not being allowed in MOTD
Note: this will of course not work properly if a pre 1.16 client attempts to ping your server

By: md_5 <git@md-5.net>
2020-06-30 13:12:26 +10:00
CraftBukkit/Spigot
8757acc978 SPIGOT-5889: Villager using composter should call EntityChangeBlockEvent
By: Parker Hawke <hawkeboyz2@hotmail.com>
2020-06-30 12:18:39 +10:00
CraftBukkit/Spigot
f5ea9fecec SPIGOT-5899: Hoglins API similar to Piglins
By: md_5 <git@md-5.net>
2020-06-30 12:03:19 +10:00
CraftBukkit/Spigot
cfc8b4ad5e SPIGOT-5887: ClickType doesn't include off hand swaps
By: md_5 <git@md-5.net>
2020-06-30 11:43:15 +10:00
CraftBukkit/Spigot
fe93691df2 SPIGOT-5903: EntityDismountEvent cannot be triggered asynchronously
By: md_5 <git@md-5.net>
2020-06-30 10:55:06 +10:00
CraftBukkit/Spigot
4b15e585af SPIGOT-5884: Tab completions lost on reloadData / minecraft:reload
By: md_5 <git@md-5.net>
2020-06-30 10:51:26 +10:00
CraftBukkit/Spigot
4dc354cef6 SPIGOT-5902: PlayerRespawnEvent places player at spawn before event is called
By: md_5 <git@md-5.net>
2020-06-30 10:35:28 +10:00
CraftBukkit/Spigot
4d5f3cf4e9 SPIGOT-5901: Structures are generated in all worlds based on the setting for the main world
By: md_5 <git@md-5.net>
2020-06-30 10:29:41 +10:00
CraftBukkit/Spigot
455c5d71c4 SPIGOT-5895: PlayerChangedWorldEvent#getFrom is incorrect
By: md_5 <git@md-5.net>
2020-06-30 10:03:46 +10:00
CraftBukkit/Spigot
aef11bebb7 SPIGOT-5886: Missing BlockData
By: md_5 <git@md-5.net>
2020-06-30 10:01:45 +10:00
CraftBukkit/Spigot
8b8fc993bd #686: Expand Strider and Steerable entity API
By: Parker Hawke <hawkeboyz2@hotmail.com>
2020-06-30 09:54:28 +10:00
CraftBukkit/Spigot
a78201fc5e SPIGOT-5882: NPE when emptying bucket on already waterlogged blocks
By: Parker Hawke <hawkeboyz2@hotmail.com>
2020-06-29 11:09:50 +10:00
CraftBukkit/Spigot
c19042a233 SPIGOT-5803: Implement the missing methods for the Piglin API.
By: ceezuns <49824660+ceezuns@users.noreply.github.com>
2020-06-29 09:58:04 +10:00
CraftBukkit/Spigot
f7e7987573 #696: Respect the NotNull annotation of getChargedProjectiles in CraftMetaCrossbow
By: Martoph <sager1018@gmail.com>
2020-06-29 09:09:52 +10:00
CraftBukkit/Spigot
b1e0569835 SPIGOT-5849: Constantly Raining in World 1.16
By: Parker Hawke <hawkeboyz2@hotmail.com>
2020-06-29 08:25:59 +10:00
CraftBukkit/Spigot
7972777861 SPIGOT-5810, SPIGOT-5835: 'Better' handling of Player.isOnGround
By: md_5 <git@md-5.net>
2020-06-28 10:15:32 +10:00
CraftBukkit/Spigot
7975d3236a SPIGOT-5865: Piglin does not trigger EntityPickupItemEvent
By: md_5 <git@md-5.net>
2020-06-28 09:39:31 +10:00
CraftBukkit/Spigot
4383162fda Update ECJ version
By: md_5 <git@md-5.net>
2020-06-28 09:39:16 +10:00
CraftBukkit/Spigot
4a0a1f1ead SPIGOT-5868: Blocks do not tick in custom nether / end
By: md_5 <git@md-5.net>
2020-06-28 09:03:51 +10:00
CraftBukkit/Spigot
4d97997a65 SPIGOT-5863: Don't check colour in scoreboard length validation
By: md_5 <git@md-5.net>
2020-06-28 08:58:26 +10:00
CraftBukkit/Spigot
e477e8caec SPIGOT-5866: Beehive unknown TargetReason
By: md_5 <git@md-5.net>
2020-06-28 08:56:12 +10:00
CraftBukkit/Spigot
87462b8620 SPIGOT-5856: Soul Campfire BlockState cannot be cast to Campfire
By: md_5 <git@md-5.net>
2020-06-27 17:18:34 +10:00
CraftBukkit/Spigot
fe0faa152c SPIGOT-5853: DragonBattle#getEndPortalLocation() throws NPE on new world
* Add method to generate the end portal

By: Parker Hawke <hawkeboyz2@hotmail.com>
2020-06-27 11:09:01 +10:00
CraftBukkit/Spigot
24a247fce5 SPIGOT-5845: ChatColor.RESET does not work in ItemMeta to reset italics
By: md_5 <git@md-5.net>
2020-06-27 10:37:33 +10:00
CraftBukkit/Spigot
fff84f2f22 CraftChatMessageTest does not need AbstractTestingBase
By: md_5 <git@md-5.net>
2020-06-27 09:28:17 +10:00
CraftBukkit/Spigot
ffa9c1bc00 SPIGOT-5828: Unlock worlds on unload
By: md_5 <git@md-5.net>
2020-06-27 09:15:14 +10:00
CraftBukkit/Spigot
d709e3ffee SPIGOT-5841: New map colours broken
By: md_5 <git@md-5.net>
2020-06-27 09:05:09 +10:00
CraftBukkit/Spigot
aea139dc1f SPIGOT-5847: BlockFadeEvent cannot be triggered asynchronously from another thread
By: md_5 <git@md-5.net>
2020-06-27 08:41:54 +10:00
CraftBukkit/Spigot
fcfcbd3975 SPIGOT-5836: PotionEffect HEALTH_BOOST never expires
By: md_5 <git@md-5.net>
2020-06-26 19:13:33 +10:00
CraftBukkit/Spigot
8144dfbd7f Add configuration options for water_ambient spawning
By: md_5 <git@md-5.net>
2020-06-26 18:39:42 +10:00
CraftBukkit/Spigot
b60f49f0ea SPIGOT-5833: Player#setWalkSpeed not working
By: md_5 <git@md-5.net>
2020-06-26 17:56:49 +10:00
CraftBukkit/Spigot
4208414e72 Re-add default bukkit datapack
By: md_5 <git@md-5.net>
2020-06-26 12:24:35 +10:00
CraftBukkit/Spigot
e86afc5eb3 SPIGOT-5735: Add EntityEnterLoveModeEvent
By: DiamondDagger590 <diamonddagger590@gmail.com>
2020-06-26 11:12:25 +10:00
CraftBukkit/Spigot
83f25730bd #687: Add visibility and fixed API for ItemFrames
By: SydMontague <sydmontague@phoenix-staffel.de>
2020-06-26 10:58:17 +10:00
CraftBukkit/Spigot
a74fb02e61 #685: Implement support for PersistentDataContainer arrays
By: Parker Hawke <hawkeboyz2@hotmail.com>
2020-06-26 10:49:28 +10:00
CraftBukkit/Spigot
6c951c6abb #671: Implement PersistentDataContainer#getKeys()
By: Parker Hawke <hawkeboyz2@hotmail.com>
2020-06-26 10:49:28 +10:00
CraftBukkit/Spigot
48bf20fe24 SPIGOT-5820: Fix migration of Vanilla nether / end
By: md_5 <git@md-5.net>
2020-06-26 09:49:40 +10:00
CraftBukkit/Spigot
5191bece93 SPIGOT-5829: RGB hex colours not supported in several places
By: md_5 <git@md-5.net>
2020-06-26 09:40:21 +10:00
CraftBukkit/Spigot
36434feb10 SPIGOT-5826: Don't store chunk in block states
By: md_5 <git@md-5.net>
2020-06-26 09:34:25 +10:00
CraftBukkit/Spigot
6ccde4e6fd SPIGOT-5830: Server crash when campfire lit via dispenser.
Also adds a missing call to BlockIgniteEvent for players igniting campfires with flint and steel.

By: Parker Hawke <hawkeboyz2@hotmail.com>
2020-06-25 19:01:18 -04:00
CraftBukkit/Spigot
61ff27fa00 Better handling of custom end/nether teleports
By: md_5 <git@md-5.net>
2020-06-26 08:38:18 +10:00
CraftBukkit/Spigot
be27330b16 SPIGOT-5816: PlayerTeleportEvent not called when using netherportals and allow-nether=false
By: md_5 <git@md-5.net>
2020-06-26 08:30:47 +10:00
CraftBukkit/Spigot
292593e180 SPIGOT-5827: Player.getLocale always returns en_us
By: md_5 <git@md-5.net>
2020-06-26 08:06:30 +10:00
CraftBukkit/Spigot
add541e2df SPIGOT-5812: ProjectileHitEvent fires twice if projectile is an Egg
By: md_5 <git@md-5.net>
2020-06-26 08:02:51 +10:00
CraftBukkit/Spigot
53cfc6428c Shorten build expiry to 1 day
By: md_5 <git@md-5.net>
2020-06-26 07:37:19 +10:00
CraftBukkit/Spigot
4478e7e0d8 SPIGOT-5809: block.getState() wall signs too
By: md_5 <git@md-5.net>
2020-06-25 20:08:32 +10:00
CraftBukkit/Spigot
3933b98a60 Fix 1.16 binary mappings not applying to modern plugins
By: md_5 <git@md-5.net>
2020-06-25 20:03:30 +10:00
CraftBukkit/Spigot
27d67a7a4e SPIGOT-5803: Add Piglin/Zoglin Baby API
By: md_5 <git@md-5.net>
2020-06-25 19:58:27 +10:00
CraftBukkit/Spigot
a955c5cbab SPIGOT-5809: block.getState() instanceof Sign for crimson_sign missed
By: md_5 <git@md-5.net>
2020-06-25 19:42:38 +10:00
CraftBukkit/Spigot
189c2a0e03 SPIGOT-5809: block.getState() instanceof Sign for warped_sign missed
By: md_5 <git@md-5.net>
2020-06-25 19:22:27 +10:00
CraftBukkit/Spigot
ea7b7e1ddd Misc bugfixes to multiworld support
By: md_5 <git@md-5.net>
2020-06-25 17:58:10 +10:00
CraftBukkit/Spigot
6da7d19c96 SPIGOT-5806: Block#getDrops(ItemStack tool) does not work as it should
By: md_5 <git@md-5.net>
2020-06-25 17:04:07 +10:00
CraftBukkit/Spigot
e388fab4fe SPIGOT-5805: NPE when getting an Attribute from a Player
By: md_5 <git@md-5.net>
2020-06-25 13:19:24 +10:00
CraftBukkit/Spigot
ae29605e26 SPIGOT-5804: Cannot launch Entity Firework
By: md_5 <git@md-5.net>
2020-06-25 12:57:58 +10:00
CraftBukkit/Spigot
097840d174 SPIGOT-5802: Add SmithingRecipe API
By: md_5 <git@md-5.net>
2020-06-25 12:41:55 +10:00
CraftBukkit/Spigot
e7046d2ae1 SPIGOT-5801: End gateways crash server upon enderpearl use through them
By: md_5 <git@md-5.net>
2020-06-25 12:16:41 +10:00
CraftBukkit/Spigot
bafa4625d1 SPIGOT-2106, SPIGOT-3942: Improve collidable API
By: Phoenix616 <mail@moep.tv>
2020-06-25 10:00:00 +10:00
CraftBukkit/Spigot
dc5ebfac9a SPIGOT-5562: Entering a boat triggers VehicleExitEvent
This patch prevents entities from riding a vehicle they're already riding on.
When trying to enter a boat the client will send up to two packets for each hand
causing the server to think they should enter the boat twice, despite the first
interaction being sufficient.

By: SydMontague <sydmontague@phoenix-staffel.de>
2020-06-25 10:00:00 +10:00
CraftBukkit/Spigot
50503fd516 Update to Minecraft 1.16.1
By: md_5 <git@md-5.net>
2020-06-25 10:00:00 +10:00
CraftBukkit/Spigot
3862d2811e SPIGOT-5782: Set Arrow Launched From Crossbow
By: md_5 <git@md-5.net>
2020-06-24 10:05:39 +10:00
CraftBukkit/Spigot
5f36fbfcfe SPIGOT-5799: InventoryCloseEvent fires after PlayerQuitEvent
By: md_5 <git@md-5.net>
2020-06-24 09:54:59 +10:00
CraftBukkit/Spigot
fed33ad6d5 SPIGOT-5675, SPIGOT-5798, MC-149563: Fix tracking of entities across dimensions
By: md_5 <git@md-5.net>
2020-06-24 09:21:39 +10:00
CraftBukkit/Spigot
0af0259050 SPIGOT-5797: Zombie(Villagers) Instant Convert based on their lifetime
By: md_5 <git@md-5.net>
2020-06-24 08:52:40 +10:00
CraftBukkit/Spigot
33a09c7f27 Remove outdated build delay.
By: md_5 <git@md-5.net>
2020-06-20 12:50:13 +10:00
CraftBukkit/Spigot
2516f48571 Revert "#675: Fix redirected CommandNodes sometimes not being properly redirected"
This reverts commit 36e3ae4ae6.

By: md_5 <git@md-5.net>
2020-06-18 07:41:02 +10:00
CraftBukkit/Spigot
36e3ae4ae6 #675: Fix redirected CommandNodes sometimes not being properly redirected
By: Matthias Ngeo <matthiasngeo@gmail.com>
2020-06-17 20:04:50 +10:00
CraftBukkit/Spigot
5a47beb9cd SPIGOT-2623: Add EntityEquipment methods to get/set ItemStacks by slot.
By: blablubbabc <lukas@wirsindwir.de>
2020-06-13 20:56:32 +10:00
CraftBukkit/Spigot
ecdda0bdbc #673: Fix Craftworld#isChunkLoaded
The flag for getChunkAt(int, int, ChunkStatus, boolean)
is actually a flag for whether to bring the underlying
PlayerChunk up to the required ticket level to load the
chunk. So, if the chunk is already at the required level,
but has not yet loaded, the call will actually either
start the load if it has not already been started and
block until completion.

This behaviour is not suitable for just
checking if the chunk is loaded.

By: Spottedleaf <Spottedleaf@users.noreply.github.com>
2020-06-06 19:23:46 +10:00
CraftBukkit/Spigot
3be59d8d05 SPIGOT-5751: Made breakNaturally and getDrops returns the correct item if no argument is given
By: Lars Dormans <lars.dormans@live.nl>
2020-06-03 19:28:13 +10:00
CraftBukkit/Spigot
a1cc6a4683 SPIGOT-4441: Fix serializing Components to and from Legacy
While 9862a0135d might of semi helped being able to save black text
lore, it actually took a fundamental problem with the legacy serialization
code and expanded it to break even more aspects of the server when dealing
with Component to Legacy conversion.

This is causing data loss in Spigot with cases such as setting an item name
to white gets stripped resulting in it being italic.

Additionally, things such as book pages have been returning black formatting
codes for the end of the line even when the user doesn't have colors in the book.

The root issue is that the "Default Color" system is fundamentally wrong.

Components do not and should not care about what element of the game they
are being used by, and that's what the default color system did.

It results in components that if obtained from 1 source such as a Book
where the default / rendered color is black, is then copied to another
source such as an Entity name, the black is carried forward and shown
in the Entity name, when in reality it should have been white.

This commit reverts 9862a0135d and fixes the underlying serialization
issues when it comes to Legacy to and From conversions.

There was quite a number of issues with this code overall, in how
it handles inserting color codes, new line parsing and such.

Books was using mojangs own "getLegacyString" which doesn't match behavior.
We also do not want to use Mojangs method as there is no guarantee they don't
remove that in future.
Plus, everything about books uses the CB implementation anyways, and it should
be consistent (this was mandatory to avoid serialization format changes on old vs new)

These changes as is results in Item Stacks already serialized will not
change contents when they go to component and back, so this won't impact
any existing data.

Newly created books though for example will change behavior in that they
will no longer insert black color codes in the serialized data and will
only represent intentional color changes by the creator of the book.
This will result in cleaner data on them, and books are the only thing
I'm aware of that has a behavioral shift due to the likelyhood of the
default color system kicking in on other parts of the string.

A unit test has been added to verify integrity of serialization to
ensure that any legacy string that is converted into Components will
always re-encode back in the same way when going back to Legacy.

By: Aikar <aikar@aikar.co>
2020-06-01 19:19:42 +10:00
CraftBukkit/Spigot
515509a1a9 #665: Add test for Material#getCraftingRemainingItem()
By: ben <ben@benwoodworth.net>
2020-05-28 19:31:27 +10:00
CraftBukkit/Spigot
9862a0135d SPIGOT-5749: ItemMeta serializing to YAML not saving black colour code
By: md_5 <git@md-5.net>
2020-05-26 19:39:03 +10:00
CraftBukkit/Spigot
edf9390114 SPIGOT-5748: Add instant effect potion break to the Effect enum
Conversion from Color to integer for the data of the new enum entry

By: WinX64 <winx64b@hotmail.com>
2020-05-26 19:34:39 +10:00
CraftBukkit/Spigot
809449f545 SPIGOT-5716: Clarify documentation of MultipleFacing
By: md_5 <git@md-5.net>
2020-05-09 16:12:18 +10:00
CraftBukkit/Spigot
a00b0adb43 SPIGOT-5718: Block.BreakBlockNaturally does not reflect tool used
By: md_5 <git@md-5.net>
2020-05-09 16:05:17 +10:00
CraftBukkit/Spigot
698e183d45 SPIGOT-5727: GameRule doImmediateRespawn cannot be set per-world
By: ShaneBeee <shanebolenback@me.com>
2020-05-09 15:45:52 +10:00
CraftBukkit/Spigot
53746005d5 #664: Add methods to get/set ItemStacks in EquipmentSlots
By: Parker Hawke <hawkeboyz2@hotmail.com>
2020-05-05 19:10:03 +10:00
CraftBukkit/Spigot
fb92d00666 #662: Expose ItemStack and hand used in PlayerShearEntityEvent
By: Parker Hawke <hawkeboyz2@hotmail.com>
2020-05-02 17:48:37 +10:00
CraftBukkit/Spigot
c4099fa584 SPIGOT-2304: Implement LootGenerateEvent
By: Parker Hawke <hawkeboyz2@hotmail.com>
2020-04-30 19:15:58 +10:00
CraftBukkit/Spigot
0141e701d7 SPIGOT-5566: Doused campfires & fires should call EntityChangeBlockEvent
By: Parker Hawke <hawkeboyz2@hotmail.com>
2020-04-29 17:26:40 +10:00
CraftBukkit/Spigot
b29a5757f9 SPIGOT-5707: PersistentDataHolder not Persistent on API dropped Item
By: md_5 <git@md-5.net>
2020-04-29 17:21:06 +10:00
CraftBukkit/Spigot
95a89a0073 #650: Add method to get player's attack cooldown
By: DiamondDagger590 <diamonddagger590@gmail.com>
2020-04-23 11:13:40 +10:00
CraftBukkit/Spigot
8a51bce44c #655: Added support for the VM tag jansi.passthrough when processing messages sent to a ColouredConsoleSender.
By: Martoph <sager1018@gmail.com>
2020-04-23 11:06:13 +10:00
CraftBukkit/Spigot
3f9b83c715 SPIGOT-5689: Fireball.setDirection increases velocity too much
By: md_5 <git@md-5.net>
2020-04-23 08:33:33 +10:00
CraftBukkit/Spigot
e9672f330b SPIGOT-5673: swingHand API does not show to self
By: md_5 <git@md-5.net>
2020-04-22 12:06:24 +10:00
CraftBukkit/Spigot
62583ba081 SPIGOT-5680: isChunkGenerated creates empty region files
By: md_5 <git@md-5.net>
2020-04-22 12:00:50 +10:00
CraftBukkit/Spigot
7eca640bdd Improve build process
By: md_5 <git@md-5.net>
2020-04-22 11:50:23 +10:00
CraftBukkit/Spigot
9f7fbec5c6 Add a couple of method null checks to CraftWorld
By: md_5 <git@md-5.net>
2020-04-17 08:39:22 +10:00
CraftBukkit/Spigot
18886036f4 Misc checkstyle fixes
By: md_5 <git@md-5.net>
2020-04-14 12:34:43 +10:00
CraftBukkit/Spigot
5833b4d35c SPIGOT-5669: Fix Beehive.isSedated
By: Lars Dormans <lars.dormans@live.nl>
2020-04-13 00:49:58 +02:00
CraftBukkit/Spigot
d76c6104ce SPIGOT-5665: Improve loading spawn egg NBT
By: md_5 <git@md-5.net>
2020-04-10 11:16:58 +10:00
CraftBukkit/Spigot
593102e1fa SPIGOT-5667: Can't add recipe without (vanilla) datapack
By: md_5 <git@md-5.net>
2020-04-10 10:56:00 +10:00
CraftBukkit/Spigot
92afab4058 SPIGOT-5603: Use LootContext#lootingModifier in CraftLootTable
By: konsolas <vincentyntang@gmail.com>
2020-04-08 17:11:22 +10:00
CraftBukkit/Spigot
bd0b71b0a0 SPIGOT-5657: BlockPlaceEvent not cancelling for tripwire hooks
By: md_5 <git@md-5.net>
2020-04-05 17:19:03 +10:00
CraftBukkit/Spigot
466de0ab57 SPIGOT-5641: Add Block.getDrops(ItemStack, Entity)
By: md_5 <git@md-5.net>
2020-04-05 16:52:06 +10:00
CraftBukkit/Spigot
51b2cd767e Fix some formatting in CraftHumanEntity
By: md_5 <git@md-5.net>
2020-04-05 16:30:47 +10:00
CraftBukkit/Spigot
8c3cf217bb Add Merchant slot delegate
By: md_5 <git@md-5.net>
2020-04-05 16:29:43 +10:00
CraftBukkit/Spigot
8155ea419f SPIGOT-5621: Add missing container types for opening InventoryView
By: Tim <tblattner@gmail.com>
2020-04-05 16:28:43 +10:00
CraftBukkit/Spigot
b7d5dc8dd0 #645: Allow statistics to be accessed for offline players
By: SydMontague <sydmontague@phoenix-staffel.de>
2020-04-05 15:58:43 +10:00
CraftBukkit/Spigot
96b5fcb92f #649: CraftBell should implement Bell
By: ShaneBee <shanebolenback@me.com>
2020-04-04 02:32:15 -07:00
CraftBukkit/Spigot
deee71fef3 SPIGOT-5650: Lectern.setPage(int) causes a NullPointerException
By: md_5 <git@md-5.net>
2020-04-01 09:30:47 +11:00
CraftBukkit/Spigot
7cc234d159 Add FaceAttachable interface to handle Grindstone facing in common with Switches
By: md_5 <git@md-5.net>
2020-04-01 09:14:29 +11:00
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