Add PlayerFlowerPotManipulateEvent#2459
Merged
Proximyst merged 1 commit intoJan 3, 2021
Merged
Conversation
|
🌻 |
|
💮 🌷 |
Contributor
|
Please don't spam comments. |
|
Sorry |
Proximyst
previously approved these changes
Nov 14, 2020
Contributor
Proximyst
left a comment
There was a problem hiding this comment.
Needs a rebase, but lgtm.
| --- /dev/null | ||
| +++ b/src/main/java/com/destroystokyo/paper/event/player/PlayerFlowerPotManipulateEvent.java | ||
| @@ -0,0 +1,75 @@ | ||
| +package com.destroystokyo.paper.event.player; |
Contributor
There was a problem hiding this comment.
Suggested change
| +package com.destroystokyo.paper.event.player; | |
| +package io.papermc.paper.event.player; |
| world.setTypeAndData(blockposition, block.getBlockData(), 3); | ||
| entityhuman.a(StatisticList.POT_FLOWER); | ||
| -- | ||
| 2.20.1.windows.1 |
472e2dd to
ccd1806
Compare
Contributor
Author
|
Alright rebased on top of latest. Had to change one line of code server-side due to latest server changes. Should be good to go! |
zachbr
previously approved these changes
Jan 3, 2021
cdea4a4 to
d3c5822
Compare
Contributor
|
@limbo-app ready |
limbo-app
approved these changes
Jan 3, 2021
limbo-app
left a comment
There was a problem hiding this comment.
Pull request automatically approved for merging - a core team member has previously approved this pull request.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added an event for when a player places an item in or takes an item out of a flower pot.
This is a revisit to an old PR I had submitted nearly 3 years ago but wasn't able to finish because of an issue with server-side code that handles event cancellation.