Skip to content

Instantly share code, notes, and snippets.

@phase
Created June 11, 2016 06:25
Show Gist options
  • Select an option

  • Save phase/5d00a063a11caeb29b005c08e184c4ec to your computer and use it in GitHub Desktop.

Select an option

Save phase/5d00a063a11caeb29b005c08e184c4ec to your computer and use it in GitHub Desktop.
--- minecraft/src/net/minecraft/server/management/PlayerInteractionManager.java 2016-06-05 00:35:06.357145211 -0700
+++ src/main/java/net/minecraft/server/management/PlayerInteractionManager.java 2016-06-10 22:33:59.329798819 -0700
@@ -197,6 +197,8 @@
}
public boolean tryHarvestBlock(BlockPos var1) {
+ xyz.jadonfowler.fountain.api.Fountain.getServer().getPluginManager().getEventBus()
+ .fire(new xyz.jadonfowler.fountain.api.event.world.block.BlockBreakEvent(new xyz.jadonfowler.fountain.world.block.WetBlock(theWorld, var1)));
if(this.gameType.isCreative() && this.thisPlayerMP.getHeldItemMainhand() != null && this.thisPlayerMP.getHeldItemMainhand().getItem() instanceof ItemSword) {
return false;
} else {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment