generated from BocchiKessokuTeam/ForgeTemplateMod-ArchLoom
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move
onProcessRightClickPost
from mixin to forge event
- Loading branch information
Showing
4 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
## Change | ||
- update mafglib to `0.1.8` | ||
- update mafglib to `0.1.8` | ||
- move `onProcessRightClickPost` from mixin to forge event |
This file contains 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
12 changes: 12 additions & 0 deletions
12
src/main/java/fi/dy/masa/tweakeroo/compat/forge/ForgeEventHandler.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package fi.dy.masa.tweakeroo.compat.forge; | ||
|
||
import fi.dy.masa.tweakeroo.tweaks.PlacementTweaks; | ||
import net.minecraftforge.event.entity.player.PlayerDestroyItemEvent; | ||
import net.minecraftforge.eventbus.api.SubscribeEvent; | ||
|
||
public class ForgeEventHandler { | ||
@SubscribeEvent | ||
public void onPlayerDestroyItem(PlayerDestroyItemEvent event) { | ||
PlacementTweaks.onProcessRightClickPost(event.getEntity(), event.getHand()); | ||
} | ||
} |
This file contains 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