Skip to content
This repository has been archived by the owner on Mar 10, 2021. It is now read-only.

Commit

Permalink
Added a result check, to avoid overwriting/cancelling results from ev…
Browse files Browse the repository at this point in the history
…ents with a higher priority.
  • Loading branch information
TinkerWorX committed Dec 27, 2015
1 parent 0fc1bd1 commit b421b57
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -46,6 +46,9 @@ public void bucketFill (FillBucketEvent event)
{
if (event.current.getItem() == IguanaItems.clayBucketFired && event.target.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK)
{
if(event.getResult() == Event.Result.ALLOW)
return;

int hitX = event.target.blockX;
int hitY = event.target.blockY;
int hitZ = event.target.blockZ;
Expand Down

0 comments on commit b421b57

Please sign in to comment.