Commit graph

961 commits

Author SHA1 Message Date
CraftBukkit/Spigot
5ea2a0e8e4 Clean diff slightly in MinecraftServer
By: md_5 <git@md-5.net>
2019-04-25 10:14:16 +10:00
CraftBukkit/Spigot
e9b89119e0 SPIGOT-4734: Sign placement fails when looking at grass
By: md_5 <git@md-5.net>
2019-04-25 09:55:41 +10:00
CraftBukkit/Spigot
5fc0b9bc07 SPIGOT-4720: Remove now unnecessary tile fixer
By: md_5 <git@md-5.net>
2019-04-24 10:28:36 +10:00
CraftBukkit/Spigot
7e5fc5e1ba SPIGOT-4722: Cannot get title of player's inventory
By: md_5 <git@md-5.net>
2019-04-24 10:23:12 +10:00
CraftBukkit/Spigot
e9906a5c82 SPIGOT-4717: Fix adding recipes after clearRecipes is called
By: md_5 <git@md-5.net>
2019-04-23 20:53:56 +10:00
CraftBukkit/Spigot
7afe4d02f8 Begin implementation of CheckStyle style checking
By: md_5 <git@md-5.net>
2019-04-23 14:00:30 +10:00
CraftBukkit/Spigot
a0f2b74c8d Update to Minecraft 1.14-pre5
By: md_5 <git@md-5.net>
2019-04-23 12:00:00 +10:00
CraftBukkit/Spigot
93e3d6bec1 SPIGOT-4708: Fix ExactChoice recipes neglecting material
By: md_5 <git@md-5.net>
2019-04-21 10:30:37 +10:00
CraftBukkit/Spigot
dee9a212cf SPIGOT-4677: Add minecraft.admin.command_feedback permission
By: md_5 <git@md-5.net>
2019-04-20 13:24:20 +10:00
CraftBukkit/Spigot
3d88c2acc0 Remove the Damage tag from items when it is 0.
CraftBukkit (and Minecraft as well in some cases, such as when getting
an item from the creative inventory menu) will omit the Damage tag when
it is zero. However, minecraft will add the tag in some situations
nevertheless, such as when loading the ItemStack, or when explictly
setting the item undamaged.

These items (with and without the Damage tag for undamaged items) will
be considered as different by minecraft and CraftBukkit in various
situations, even though they should not. In CraftBukkit these items will
actually only be considered unsimilar if the items' metadata is not
'empty' (if it contains other additional metadata, such as enchantments,
etc.).

If the item's tag is empty after removing the Damage tag, it gets
completely removed. The setRepairCost function was adapted to behave in
the same way (removal of the tag if it becomes empty).

By: blablubbabc <lukas@wirsindwir.de>
2019-04-18 11:56:42 +02:00
CraftBukkit/Spigot
9dbf35c38c SPIGOT-4706: Can't interact with active item
By: md_5 <git@md-5.net>
2019-04-20 12:57:02 +10:00
CraftBukkit/Spigot
c7a6f8f4d5 SPIGOT-4702: Exception when middle clicking certain slots
By: md_5 <git@md-5.net>
2019-04-16 20:49:28 +10:00
CraftBukkit/Spigot
c6d3a7e5c4 SPIGOT-4700: Add PlayerFishEvent.State.REEL_IN
By: md_5 <git@md-5.net>
2019-04-15 20:42:51 +10:00
CraftBukkit/Spigot
6111c0258c SPIGOT-4684: Update persistence of converting zombie villagers
By: md_5 <git@md-5.net>
2019-04-08 20:29:18 +10:00
CraftBukkit/Spigot
23997eddd5 SPIGOT-4678: Fix placing signs in certain circumstances
By: md_5 <git@md-5.net>
2019-03-24 21:34:57 +11:00
CraftBukkit/Spigot
622d30f730 Fix dangerously threaded beacons
By: md_5 <git@md-5.net>
2019-03-17 13:08:25 +11:00
CraftBukkit/Spigot
dcc541a4a0 Mappings Update
By: md_5 <git@md-5.net>
2019-03-17 11:48:53 +11:00
CraftBukkit/Spigot
c232318c9f SPIGOT-4669: Fix PlayerTeleportEvent coordinates for relative teleports
By: md_5 <git@md-5.net>
2019-03-16 15:10:34 +11:00
CraftBukkit/Spigot
7a7e9aa31e SPIGOT-4666: Force parameter in HumanEntity#sleep
Also moved the application of the force parameter inside EntityHuman, to
no longer allow bypassing of very essential checks.

By: blablubbabc <lukas@wirsindwir.de>
2019-03-13 04:48:19 +01:00
CraftBukkit/Spigot
6f19c56acd Fix ExplosionPrimeEvent#setFire not working with EnderCrystals
By: Phoenix616 <mail@moep.tv>
2019-03-09 22:29:09 +01:00
CraftBukkit/Spigot
d8321eeba1 Rebuild patches
By: md_5 <git@md-5.net>
2019-03-06 16:38:02 +11:00
CraftBukkit/Spigot
0f33d638d0 Improve damage handling of dead entities
By: Phoenix616 <mail@moep.tv>
2019-03-06 01:13:47 +01:00
CraftBukkit/Spigot
a6bce7bfb4 SPIGOT-4647: Properly cancel VehicleDamageEvent
By: md_5 <git@md-5.net>
2019-03-05 16:42:23 +11:00
CraftBukkit/Spigot
196d19e95c Use getBukkitEntity for ExplosionPrimeEvent instead of creating new one
By: Phoenix616 <mail@moep.tv>
2019-03-04 16:12:52 +01:00
CraftBukkit/Spigot
d0fdcfcf41 Add love mode API to Animals
By: Parker Hawke <hawkeboyz2@hotmail.com>
2019-02-27 21:56:25 +00:00
CraftBukkit/Spigot
94a194355b SPIGOT-4638: Give last registered recipe priority
By: md_5 <git@md-5.net>
2019-02-26 11:17:42 +11:00
CraftBukkit/Spigot
0deb5e7d0a SPIGOT-4637: Add source block to BlockPhysicsEvent.
Allows a plugin to lookup the source block of event. For example, a protection plugin may want to determine what caused the physics event to be triggered.

By: bloodshot <jdroque@gmail.com>
2019-02-24 22:50:05 -05:00
CraftBukkit/Spigot
5c6e6853e3 SPIGOT-4635: Restore shield damage sound
By: md_5 <git@md-5.net>
2019-02-25 18:52:09 +11:00
CraftBukkit/Spigot
13289e0c17 SPIGOT-4619: Incorrect packet order for villager inventories
By: md_5 <git@md-5.net>
2019-02-13 17:02:33 +11:00
CraftBukkit/Spigot
a6ec0de609 Fix EntityPickupItemEvent getRemaining / PlayerInventory#canHold
Without this change the calculation of fitting items was incorrect, so event.getRemaining() did return 0 when it should not be 0.

By: Brokkonaut <hannos17@gmx.de>
2019-02-12 04:49:24 +01:00
CraftBukkit/Spigot
773e44eee7 SPIGOT-4615: Missing target event for withers
By: md_5 <git@md-5.net>
2019-02-10 10:32:24 +11:00
CraftBukkit/Spigot
64264bdd79 Make AreaEffectCloudApplyEvent cancellable
By: bermudalocket <bermudalckt@gmail.com>
2019-02-07 00:40:41 -05:00
CraftBukkit/Spigot
cda432d64a Don't handle sync packets for kicked players
By: md_5 <git@md-5.net>
2019-02-03 14:23:04 +11:00
CraftBukkit/Spigot
69ea4f2bcd SPIGOT-4602: Cache reflection in decompile error workaround
By: md_5 <git@md-5.net>
2019-02-02 09:57:26 +11:00
CraftBukkit/Spigot
8b6d75b06e SPIGOT-4193: API for selecting entities by strings
By: md_5 <git@md-5.net>
2019-01-31 15:08:25 +11:00
CraftBukkit/Spigot
b8ededbf19 SPIGOT-4597: Make BlockDropItemEvent use a list
By: md_5 <git@md-5.net>
2019-01-30 11:20:39 +11:00
CraftBukkit/Spigot
e5292ad840 Need to update item in hand if fish bucket pickup cancelled
By: md_5 <git@md-5.net>
2019-01-27 15:32:30 +11:00
CraftBukkit/Spigot
eacdff8282 SPIGOT-4591: Must mark itemstacks as dirty in case the handle itself changed
By: md_5 <git@md-5.net>
2019-01-25 20:54:56 +11:00
CraftBukkit/Spigot
9e07e466a9 Fix minecraft.command.selector permission
By: md_5 <git@md-5.net>
2019-01-18 15:59:21 +11:00
CraftBukkit/Spigot
549fd7da45 SPIGOT-4584: Call events for hatching turtle eggs
By: Brokkonaut <hannos17@gmx.de>
2019-01-17 03:02:34 +01:00
CraftBukkit/Spigot
6f596cf9de SPIGOT-4579: Shulker boxes not dropping in creative
By: md_5 <git@md-5.net>
2019-01-14 15:53:54 +11:00
CraftBukkit/Spigot
9782a90283 Fix duplicate iron golem add
By: md_5 <git@md-5.net>
2019-01-11 12:37:43 +11:00
CraftBukkit/Spigot
d8f2a7e7cc Fix a bunch of duplicate EntityCombustEvent calls
By: md_5 <git@md-5.net>
2019-01-11 11:41:32 +11:00
CraftBukkit/Spigot
ab7419bd7d SPIGOT-4571: EntityCombustEvent not firing for phantoms
By: md_5 <git@md-5.net>
2019-01-09 20:38:37 +11:00
CraftBukkit/Spigot
5a915978fa SPIGOT-4570: Add FluidLevelChangeEvent
By: md_5 <git@md-5.net>
2019-01-08 21:23:11 +11:00
CraftBukkit/Spigot
9276e6f396 Fix BlockDropItemEvent for Skulls and Shulker Boxes
By: md_5 <git@md-5.net>
2019-01-07 13:57:35 +11:00
CraftBukkit/Spigot
6ec5377de8 Load default world spawn areas in consistent order
By: md_5 <git@md-5.net>
2019-01-05 17:05:51 +11:00
CraftBukkit/Spigot
cf22e510c4 Fix confusing migration message appearing on fresh server
By: md_5 <git@md-5.net>
2019-01-05 17:03:12 +11:00
CraftBukkit/Spigot
01688ed577 Remove redundant CraftBukkit change for secondary world data
The above loop would always save this data

By: md_5 <git@md-5.net>
2019-01-05 16:41:02 +11:00
CraftBukkit/Spigot
e2d96edfa7 Process conversation input on the main thread.
Fixes BUKKIT-5611.

By: riking <rikingcoding@gmail.com>
2019-01-05 16:21:07 +11:00
CraftBukkit/Spigot
d19f284744 Descriptive kick reasons instead of Nope!
By: drXor <mcyoungsota@gmail.com>
2019-01-05 16:21:07 +11:00
CraftBukkit/Spigot
3e70f09bdf SPIGOT-4563: Fix regenerating chunks saved to disk already
By: md_5 <git@md-5.net>
2019-01-03 15:44:06 +11:00
CraftBukkit/Spigot
5aff480181 Add RecipeChoice.ExactChoice API for NBT matches on ingredients
By: md_5 <git@md-5.net>
2019-01-02 15:56:21 +11:00
CraftBukkit/Spigot
1336c4afb9 SPIGOT-4560: Add HumanEntity.sleep and related APIs
By: md_5 <git@md-5.net>
2019-01-02 14:41:31 +11:00
CraftBukkit/Spigot
19795494f3 SPIGOT-4562: reducedDebugInfo not updated on world change
By: md_5 <git@md-5.net>
2019-01-02 10:57:47 +11:00
CraftBukkit/Spigot
d2d0415a74 SPIGOT-4556: Fix plugins closing inventory during drop events
By: md_5 <git@md-5.net>
2018-12-31 10:13:02 +11:00
CraftBukkit/Spigot
92b2d3a400 Replace version constants with methods to prevent compiler inlining
By: md_5 <git@md-5.net>
2018-12-30 16:00:31 +11:00
CraftBukkit/Spigot
aa6ac2b0e2 SPIGOT-2864: Make Arrow / Item setTicksLived behave like FallingBlock
By: md_5 <git@md-5.net>
2018-12-27 12:02:17 +11:00
CraftBukkit/Spigot
b9c01d1768 SPIGOT-1811: Death message not shown on respawn screen
By: md_5 <git@md-5.net>
2018-12-27 11:37:19 +11:00
CraftBukkit/Spigot
6b0b34838e SPIGOT-943: InventoryCloseEvent called on death regardless of open inventory
By: md_5 <git@md-5.net>
2018-12-27 11:36:53 +11:00
CraftBukkit/Spigot
e7b5d8a7cf SPIGOT-794: Call EntityPlaceEvent for Minecart placement
By: md_5 <git@md-5.net>
2018-12-27 10:45:36 +11:00
CraftBukkit/Spigot
d085b4781b Add InventoryView#getSlotType
By: md_5 <git@md-5.net>
2018-12-26 10:40:14 +11:00
CraftBukkit/Spigot
5e4a190d2c Add PlayerItemDamageEvent
By: md_5 <md_5@live.com.au>
2018-12-26 08:00:00 +11:00
CraftBukkit/Spigot
d7e312278d Mappings Update
By: md_5 <git@md-5.net>
2018-12-26 08:00:00 +11:00
CraftBukkit/Spigot
1471b6a942 Reduce copying of positions from block states
By: md_5 <git@md-5.net>
2018-12-22 11:32:11 +11:00
CraftBukkit/Spigot
bcdd4e14ac SPIGOT-4387: Durability looping from cancelled BlockPlaceEvent
By: md_5 <git@md-5.net>
2018-12-22 11:25:14 +11:00
CraftBukkit/Spigot
9ac4c1601e SPIGOT-4493: Allow burnt out furnaces to remain lit like Vanilla whilst retaining SPIGOT-844 API
By: md_5 <git@md-5.net>
2018-12-22 11:04:31 +11:00
CraftBukkit/Spigot
d6e57b855b SPIGOT-4503: Add API to insert complete ItemStack into Jukebox
By: md_5 <git@md-5.net>
2018-12-22 10:50:57 +11:00
CraftBukkit/Spigot
b33f268413 SPIGOT-4541: Cancelled bucket events require inventory update
By: md_5 <git@md-5.net>
2018-12-22 10:12:16 +11:00
CraftBukkit/Spigot
42831b84cd Add BlockData#getAsString(boolean) to hide unspecified states
By: Parker Hawke <hawkeboyz2@hotmail.com>
2018-12-16 18:21:29 -05:00
CraftBukkit/Spigot
7114dbbb9d SPIGOT-4534: Only call event for new chunks
By: md_5 <git@md-5.net>
2018-12-17 21:36:21 +11:00
CraftBukkit/Spigot
0d2bc86153 SPIGOT-4534: CreatureSpawnEvent not being called for CHUNK_GEN
By: md_5 <git@md-5.net>
2018-12-17 12:30:16 +11:00
CraftBukkit/Spigot
ee3eaaf511 SPIGOT-4527: Fix sponges with waterlogged blocks
By: md_5 <git@md-5.net>
2018-12-13 14:28:34 +11:00
CraftBukkit/Spigot
bbf578d00a SPIGOT-4526: Add conversion time API for Zombie & subclasses
By: md_5 <git@md-5.net>
2018-12-13 14:10:36 +11:00
CraftBukkit/Spigot
83baf22bde Mappings Update
By: md_5 <git@md-5.net>
2018-12-13 11:00:00 +11:00
CraftBukkit/Spigot
8817bc22d9 Fix missing ServerListPingEvent call for legacy pings
By: md_5 <git@md-5.net>
2018-12-12 11:19:31 +11:00
CraftBukkit/Spigot
c388691b53 Remove unnecessary line in BlockMushroom
By: md_5 <git@md-5.net>
2018-12-10 11:14:39 +11:00
CraftBukkit/Spigot
102dee7d4f Mappings Update
By: md_5 <git@md-5.net>
2018-12-06 10:00:00 +11:00
CraftBukkit/Spigot
e9e6bec4e5 Add list of entities to EntityTransformEvent & move die calls
By: nathat890 <nathat890@outlook.com>
2018-12-05 09:51:20 +11:00
CraftBukkit/Spigot
b69f1de549 SPIGOT-4347: Add API to allow storing arbitrary values on ItemStacks
By: Bjarne Koll <LynxPlay101@gmail.com>
2018-12-01 20:26:23 +11:00
CraftBukkit/Spigot
78841baf49 SPIGOT-4511: Trident doesn't lose durability
By: md_5 <git@md-5.net>
2018-12-01 08:18:09 +11:00
CraftBukkit/Spigot
c6b5dde39f SPIGOT-4507: BlockRedstoneEvent current flipped for levers
By: md_5 <git@md-5.net>
2018-11-28 09:09:56 +11:00
CraftBukkit/Spigot
3ea49a159d SPIGOT-4494: Remove fix for SPIGOT-3864, better handled by SPIGOT-3879 fix
By: md_5 <git@md-5.net>
2018-11-20 21:34:15 +11:00
CraftBukkit/Spigot
86353db2aa SPIGOT-4491: Fix InventoryMoveItemEvent causing repeated events
By: md_5 <git@md-5.net>
2018-11-19 20:59:37 +11:00
CraftBukkit/Spigot
c7663abcaa Add Player to BlockCanBuildEvent
By: md_5 <git@md-5.net>
2018-11-18 09:27:46 +11:00
CraftBukkit/Spigot
d625045ee2 Add some missing CreatureSpawnEvent.SpawnReason calls
By: md_5 <git@md-5.net>
2018-11-14 14:17:25 +11:00
CraftBukkit/Spigot
6fd5f1379b SPIGOT-4339: Add EntityTransformEvent
Thanks klugemonkey for some contributions in https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/pull-requests/351/overview

By: nathat890 <nathat890@outlook.com>
2018-11-14 14:10:22 +11:00
CraftBukkit/Spigot
04cffd8092 SPIGOT-4483: Missing EntityInteractEvent call for zombies on eggs
By: md_5 <git@md-5.net>
2018-11-12 19:19:04 +11:00
CraftBukkit/Spigot
696aca057f SPIGOT-4477: Arrows only firing direction of boat
By: md_5 <git@md-5.net>
2018-11-10 20:36:35 +11:00
CraftBukkit/Spigot
0902bb4e34 SPIGOT-4478: NPE during PlayerLoginEvent recipe manipulation
By: md_5 <git@md-5.net>
2018-11-10 20:30:58 +11:00
CraftBukkit/Spigot
3433c5e374 Add API to manipulate boss bar of entities and those created by commands
By: Yannick Lamprecht <yannicklamprecht@live.de>
2018-11-10 20:22:39 +11:00
CraftBukkit/Spigot
6f6c96bd33 SPIGOT-4469: Age API for EndGateway
By: md_5 <git@md-5.net>
2018-11-06 18:12:31 +11:00
CraftBukkit/Spigot
f41299cc66 SPIGOT-4471: Use wall time for zombie drowning & enhance checks
Thanks Zach Brown for outline of issue with drowned zombies.

By: md_5 <git@md-5.net>
2018-11-06 18:03:42 +11:00
CraftBukkit/Spigot
367a09407f SPIGOT-4467: Improve ExpiringMap
By: md_5 <git@md-5.net>
2018-11-04 11:40:15 +11:00
CraftBukkit/Spigot
ed68e3973e SPIGOT-4438: Add choice API to furnace recipes
By: md_5 <git@md-5.net>
2018-11-03 21:04:33 +11:00
CraftBukkit/Spigot
88f0b69603 API to get client side view distance.
By: md_5 <git@md-5.net>
2018-11-02 21:24:14 +11:00
CraftBukkit/Spigot
6c57828988 SPIGOT-4395: Additions to PlayerBedEnterEvent.
Contributions by blablubbabc as well - https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/pull-requests/500/overview

By: Ugleh <troti@ymail.com>
2018-11-02 18:31:00 +11:00
CraftBukkit/Spigot
5ba0644847 SPIGOT-4376: Add draft BlockDropItemEvent
By: AndaBlock <anda.block12345@outlook.de>
2018-10-31 19:55:04 +11:00
CraftBukkit/Spigot
c3d18995c4 SPIGOT-4433: Always generate ProtoChunk
By: md_5 <git@md-5.net>
2018-10-28 11:30:35 +11:00
CraftBukkit/Spigot
d7512e51a2 MC-137353: Don't go crazy on amount of bootstrap threads needed
By: md_5 <git@md-5.net>
2018-10-23 20:34:30 +11:00