diff options
| author | Moulberry <james.jenour@student.scotch.wa.edu.au> | 2020-08-30 02:51:50 +1000 |
|---|---|---|
| committer | Moulberry <james.jenour@student.scotch.wa.edu.au> | 2020-08-30 02:51:50 +1000 |
| commit | 79894d22b49f943bcbedb22b9d515eb3db622886 (patch) | |
| tree | 765311480ec71388dd837f7aca61e0ae8ceafac1 /src/main/java/io/github/moulberry/notenoughupdates/CustomItemEffects.java | |
| parent | a5f669c4ec0692efd0e532d23156ea260718c0ee (diff) | |
| download | notenoughupdates-79894d22b49f943bcbedb22b9d515eb3db622886.tar.gz notenoughupdates-79894d22b49f943bcbedb22b9d515eb3db622886.tar.bz2 notenoughupdates-79894d22b49f943bcbedb22b9d515eb3db622886.zip | |
1.2.4
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/CustomItemEffects.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/CustomItemEffects.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/CustomItemEffects.java b/src/main/java/io/github/moulberry/notenoughupdates/CustomItemEffects.java index fe3c7542..9d3c1c2f 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/CustomItemEffects.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/CustomItemEffects.java @@ -93,7 +93,8 @@ public class CustomItemEffects { @SubscribeEvent public void onPlayerInteract(PlayerInteractEvent event) { - if(NotEnoughUpdates.INSTANCE.manager.config.smoothAoteMillis.value <= 0) return; + if(NotEnoughUpdates.INSTANCE.manager.config.smoothAoteMillis.value <= 0 + || Minecraft.getMinecraft().gameSettings.thirdPersonView != 0) return; if(event.action == PlayerInteractEvent.Action.RIGHT_CLICK_AIR || event.action == PlayerInteractEvent.Action.RIGHT_CLICK_BLOCK) { ItemStack held = Minecraft.getMinecraft().thePlayer.getHeldItem(); |
