Commit Graph

4712 Commits

Author SHA1 Message Date
md_5
9ead700959 SPIGOT-4677: Add minecraft.admin.command_feedback permission 2019-04-20 13:24:20 +10:00
blablubbabc
c3749a2358 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).
2019-04-20 13:00:41 +10:00
md_5
f74c7b9578 SPIGOT-4706: Can't interact with active item 2019-04-20 13:00:10 +10:00
md_5
494eef45d2 Mention requirement of JIRA ticket for bug fixes 2019-04-18 11:42:53 +10:00
md_5
51d62deced SPIGOT-4702: Exception when middle clicking certain slots 2019-04-16 20:49:28 +10:00
md_5
be557e69fa SPIGOT-4700: Add PlayerFishEvent.State.REEL_IN 2019-04-15 20:42:51 +10:00
md_5
7c395d429c SPIGOT-4681: Note about additional world creation on STARTUP 2019-04-08 20:32:00 +10:00
md_5
812f66aa99 SPIGOT-4684: Update persistence of converting zombie villagers 2019-04-08 20:29:18 +10:00
md_5
f40143ef5e SPIGOT-4691: Fix custom world generator when placing tiles 2019-04-05 19:59:47 +11:00
blablubbabc
0e1cea5a4a Added Entity#setRotation.
Unlike Entity#teleport this can also be used while the entity is inside a vehicle.
2019-04-03 19:46:27 +11:00
md_5
0bf75bbde2 SPIGOT-4686: Enchantment ordering nondeterministic 2019-04-02 21:13:05 +11:00
md_5
4c8327f721 SPIGOT-4673: EntitySpawnEvent should not be called for players 2019-03-26 20:42:04 +11:00
md_5
51100db821 SPIGOT-4678: Fix placing signs in certain circumstances 2019-03-24 21:34:57 +11:00
md_5
d65a2576e4 SPIGOT-4674: Allow spawning hanging on top/bottom of block 2019-03-22 20:33:20 +11:00
md_5
d3ed151625 Fix dangerously threaded beacons 2019-03-17 13:09:37 +11:00
md_5
217a293d3e Don't relocate joptsimple to allow --help to work. 2019-03-17 12:54:21 +11:00
md_5
1be05a2146 Prepare for imminent Java 12 release 2019-03-17 12:53:55 +11:00
md_5
a49270b28b Mappings Update 2019-03-17 11:48:53 +11:00
md_5
5259d80c48 SPIGOT-4669: Fix PlayerTeleportEvent coordinates for relative teleports 2019-03-16 15:10:34 +11:00
blablubbabc
8d8475fc46 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.
2019-03-13 18:31:59 +11:00
Phoenix616
8b1588e2f1 Fix ExplosionPrimeEvent#setFire not working with EnderCrystals 2019-03-10 11:06:55 +11:00
Yannick Lamprecht
39a287b7da Don't ignore newlines in PlayerListHeader/Footer 2019-03-10 11:04:15 +11:00
md_5
77ca7ca07b Rebuild patches 2019-03-06 16:38:02 +11:00
Phoenix616
73597ed865 Improve damage handling of dead entities 2019-03-06 13:22:33 +11:00
md_5
1dbe87c8cc SPIGOT-4646: Test + fix InventoryWrapper.getContents 2019-03-05 16:59:40 +11:00
md_5
faa6226959 SPIGOT-4650: Charging API for Vex 2019-03-05 16:47:33 +11:00
md_5
f102d88299 SPIGOT-4647: Properly cancel VehicleDamageEvent 2019-03-05 16:42:23 +11:00
Phoenix616
ec17d07def Use getBukkitEntity for ExplosionPrimeEvent instead of creating new one 2019-03-04 16:50:50 +01:00
Parker Hawke
0f708cbf51 Add love mode API to Animals 2019-02-28 16:29:24 +11:00
md_5
40cbae42b1 SPIGOT-4638: Give last registered recipe priority 2019-02-26 11:17:42 +11:00
md_5
cb98c6eaef Fix line endings in CraftDefaultPermissions 2019-02-25 19:44:21 +11:00
bloodshot
822ff72934 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.
2019-02-25 19:29:43 +11:00
md_5
acbba8badd SPIGOT-4635: Restore shield damage sound 2019-02-25 18:52:09 +11:00
blablubbabc
4e4cde4816 Fix experience reward flag gets lost during MerchantRecipe conversion 2019-02-24 20:49:45 +11:00
md_5
6430d9c0ba SPIGOT-4632: BlockState location is not fixed 2019-02-21 20:32:44 +11:00
blablubbabc
14cd1688da Fix CraftInventoryMerchant#getSelectedRecipe if there is no active merchant recipe. 2019-02-21 20:29:37 +11:00
blablubbabc
c24abab787 Load custom permissions after default permissions. 2019-02-18 10:00:15 +11:00
Matthew Miller
bc99dfe89f Make tags Keyed 2019-02-17 16:21:01 +11:00
Matthew Miller
6fce004fa2 Added a method to get a list of tags 2019-02-17 16:20:53 +11:00
md_5
51c118b1d7 SPIGOT-4619: Incorrect packet order for villager inventories 2019-02-13 17:02:33 +11:00
Brokkonaut
d158f2e993 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.
2019-02-13 16:59:39 +11:00
md_5
a2dd0e3035 SPIGOT-4615: Missing target event for withers 2019-02-10 10:32:24 +11:00
md_5
b26fb37427 Update outdated spigot link 2019-02-09 10:42:26 +11:00
bermudalocket
2b1940ae24 Make AreaEffectCloudApplyEvent cancellable 2019-02-07 00:40:41 -05:00
md_5
c7ba97906c Fix incorrect method descriptor in previous commit 2019-02-06 08:08:45 +11:00
md_5
3d19f011e9 SPIGOT-4608: Improve quality of MapMeta APIs 2019-02-05 21:31:05 +11:00
md_5
2ced02339a Don't handle sync packets for kicked players 2019-02-03 14:23:04 +11:00
md_5
d5e96882ad SPIGOT-4602: Cache reflection in decompile error workaround 2019-02-02 09:57:26 +11:00
md_5
ad6070dffd SPIGOT-4193: API for selecting entities by strings 2019-01-31 15:08:25 +11:00
md_5
ed274c517f SPIGOT-4597: Make BlockDropItemEvent use a list 2019-01-30 11:20:39 +11:00