Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hi! My game crashes when this line EntityPlayer player = (EntityPlayer) event.entity; runs and I don't know why.

Here is my class:

 

 

package com.BI.Events;

 

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.item.ItemStack;

import net.minecraftforge.event.entity.living.LivingDeathEvent;

import net.minecraftforge.event.entity.living.LivingEvent.LivingUpdateEvent;

 

import com.BI.Items.Mod_Items;

 

import cpw.mods.fml.common.eventhandler.SubscribeEvent;

import cpw.mods.fml.relauncher.Side;

import cpw.mods.fml.relauncher.SideOnly;

 

public class Drop_Event {

@SubscribeEvent

@SideOnly(Side.CLIENT)

public void onPlayerKill(LivingDeathEvent event){

if (event.source.getEntity() instanceof EntityPlayer)

{

event.entityLiving.dropItem(Mod_Items.Eye, 1);

}

}

@SubscribeEvent

public void onPlayerUpdate(LivingUpdateEvent event){

EntityPlayer player = (EntityPlayer) event.entity;

ItemStack heldItem = player.getHeldItem();

if (heldItem != null && heldItem == new ItemStack(Mod_Items.DagerOfSight)){

System.out.println("afgrsgrdhse");

}

}

}

 

 

And here is the crash:

 

 

[19:57:02] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[19:57:02] [main/INFO]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[19:57:02] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker

[19:57:02] [main/INFO]: Forge Mod Loader version 7.2.156.1056 for Minecraft 1.7.2 loading

[19:57:02] [main/INFO]: Java is Java HotSpot 64-Bit Server VM, version 1.7.0_51, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7

[19:57:02] [main/INFO]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

[19:57:02] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[19:57:02] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker

[19:57:02] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[19:57:02] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[19:57:02] [main/INFO]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[19:57:02] [main/ERROR]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!

[19:57:03] [main/ERROR]: The minecraft jar file:/C:/Users/Megabitus/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1056/forgeBin-1.7.2-10.12.0.1056.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again!

[19:57:03] [main/ERROR]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem!

[19:57:03] [main/ERROR]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/Megabitus/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1056/forgeBin-1.7.2-10.12.0.1056.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it

[19:57:03] [main/ERROR]: FML appears to be missing any signature data. This is not a good thing

[19:57:03] [main/INFO]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[19:57:03] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker

[19:57:04] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[19:57:07] [main/INFO]: Setting user: Pahimar

[19:57:09] [Client thread/INFO]: LWJGL Version: 2.9.0

[19:57:10] [Client thread/INFO]: Attempting early MinecraftForge initialization

[19:57:10] [Client thread/INFO]: MinecraftForge v10.12.0.1056 Initialized

[19:57:10] [Client thread/INFO]: Replaced 141 ore recipies

[19:57:10] [Client thread/INFO]: Completed early MinecraftForge initialization

[19:57:10] [Client thread/INFO]: Searching C:\Users\Megabitus\Desktop\Making A Mod\forge-1.7.2-10.12.0.1056-src\eclipse\mods for mods

[19:57:12] [Client thread/ERROR]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.FMLRenderAccessLibrary. This is generally a severe programming error.  There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW!

[19:57:12] [Client thread/ERROR]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.Start. This is generally a severe programming error.  There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW!

[19:57:14] [Client thread/INFO]: Forge Mod Loader has identified 4 mods to load

[19:57:14] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Block and Items Reloaded

[19:57:14] [Client thread/INFO]: Configured a dormant chunk cache size of 0

 

Starting up SoundSystem...

Initializing LWJGL OpenAL

    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

OpenAL initialized.

 

[19:57:16] [sound Library Loader/INFO]: Sound engine started

[19:57:16] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas

[19:57:16] [Client thread/INFO]: Created: 256x256 textures/items-atlas

Chaos Magic 0.1>> is initializating!

Chaos Magic 0.1>> initialized succesfully the blocks!

Chaos Magic 0.1>> initialized succesfully the items!

Chaos Magic 0.1>> succesfully registrated the items!

Chaos Magic 0.1>> succesfully registrated the blocks!

Chaos Magic 0.1>> succesfully registrated the events!

Chaos Magic 0.1>> has succesfully initialized all the modules!

[19:57:16] [Client thread/INFO]: Forge Mod Loader has successfully loaded 4 mods

[19:57:16] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Block and Items Reloaded

[19:57:16] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/items/Dager of Sight.png

java.io.FileNotFoundException: minecraft:textures/items/Dager of Sight.png

at net.minecraft.client.resources.FallbackResourceManager.getResource(SourceFile:51) ~[FallbackResourceManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SourceFile:55) ~[simpleReloadableResourceManager.class:?]

at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:125) [TextureMap.class:?]

at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:90) [TextureMap.class:?]

at net.minecraft.client.renderer.texture.TextureManager.loadTexture(SourceFile:72) [TextureManager.class:?]

at net.minecraft.client.renderer.texture.TextureManager.onResourceManagerReload(SourceFile:136) [TextureManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SourceFile:104) [simpleReloadableResourceManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SourceFile:92) [simpleReloadableResourceManager.class:?]

at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:566) [Minecraft.class:?]

at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:283) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:525) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:813) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(SourceFile:103) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]

[19:57:17] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/items/Eye.png

java.io.FileNotFoundException: minecraft:textures/items/Eye.png

at net.minecraft.client.resources.FallbackResourceManager.getResource(SourceFile:51) ~[FallbackResourceManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SourceFile:55) ~[simpleReloadableResourceManager.class:?]

at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:125) [TextureMap.class:?]

at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:90) [TextureMap.class:?]

at net.minecraft.client.renderer.texture.TextureManager.loadTexture(SourceFile:72) [TextureManager.class:?]

at net.minecraft.client.renderer.texture.TextureManager.onResourceManagerReload(SourceFile:136) [TextureManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SourceFile:104) [simpleReloadableResourceManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SourceFile:92) [simpleReloadableResourceManager.class:?]

at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:566) [Minecraft.class:?]

at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:283) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:525) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:813) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(SourceFile:103) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]

[19:57:17] [Client thread/INFO]: Created: 256x256 textures/items-atlas

[19:57:17] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas

 

SoundSystem shutting down...

    Author: Paul Lamb, www.paulscode.com

 

 

Starting up SoundSystem...

Initializing LWJGL OpenAL

    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

OpenAL initialized.

 

[19:57:18] [sound Library Loader/INFO]: Sound engine started

[19:57:19] [MCO Availability Checker #1/ERROR]: Couldn't connect to Realms

[19:57:23] [server thread/INFO]: Starting integrated minecraft server version 1.7.2

[19:57:23] [server thread/INFO]: Generating keypair

[19:57:23] [server thread/INFO]: Injecting existing block and item data into this server instance

[19:57:23] [server thread/INFO]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@1f16c76c)

[19:57:23] [server thread/INFO]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@1f16c76c)

[19:57:23] [server thread/INFO]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@1f16c76c)

[19:57:23] [server thread/INFO]: Preparing start region for level 0

[19:57:24] [server thread/ERROR]: Encountered an unexpected exception

net.minecraft.util.ReportedException: Ticking entity

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:622) ~[MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:527) ~[MinecraftServer.class:?]

at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:111) ~[integratedServer.class:?]

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414) [MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:665) [MinecraftServer$2.class:?]

Caused by: java.lang.ClassCastException: net.minecraft.entity.passive.EntityChicken cannot be cast to net.minecraft.entity.player.EntityPlayer

at com.BI.Events.Drop_Event.onPlayerUpdate(Drop_Event.java:25) ~[Drop_Event.class:?]

at cpw.mods.fml.common.eventhandler.ASMEventHandler_5_Drop_Event_onPlayerUpdate_LivingUpdateEvent.invoke(.dynamic) ~[?:?]

at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:51) ~[ASMEventHandler.class:?]

at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:122) ~[EventBus.class:?]

at net.minecraftforge.common.ForgeHooks.onLivingUpdate(ForgeHooks.java:271) ~[ForgeHooks.class:?]

at net.minecraft.entity.EntityLivingBase.onUpdate(EntityLivingBase.java:1557) ~[EntityLivingBase.class:?]

at net.minecraft.entity.EntityLiving.onUpdate(EntityLiving.java:206) ~[EntityLiving.class:?]

at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2019) ~[World.class:?]

at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:659) ~[WorldServer.class:?]

at net.minecraft.world.World.updateEntity(World.java:1983) ~[World.class:?]

at net.minecraft.world.World.updateEntities(World.java:1836) ~[World.class:?]

at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:500) ~[WorldServer.class:?]

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:616) ~[MinecraftServer.class:?]

... 4 more

[19:57:24] [server thread/ERROR]: This crash report has been saved to: C:\Users\Megabitus\Desktop\Making A Mod\forge-1.7.2-10.12.0.1056-src\eclipse\.\crash-reports\crash-2014-04-14_19.57.24-server.txt

[19:57:24] [server thread/INFO]: Stopping server

[19:57:24] [server thread/INFO]: Saving players

[19:57:24] [server thread/INFO]: Saving worlds

[19:57:24] [server thread/INFO]: Saving chunks for level 'New World'/Overworld

---- Minecraft Crash Report ----

// There are four lights!

 

Time: 14.04.2014 19:57

Description: Ticking entity

 

java.lang.ClassCastException: net.minecraft.entity.passive.EntityChicken cannot be cast to net.minecraft.entity.player.EntityPlayer

at com.BI.Events.Drop_Event.onPlayerUpdate(Drop_Event.java:25)

at cpw.mods.fml.common.eventhandler.ASMEventHandler_5_Drop_Event_onPlayerUpdate_LivingUpdateEvent.invoke(.dynamic)

at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:51)

at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:122)

at net.minecraftforge.common.ForgeHooks.onLivingUpdate(ForgeHooks.java:271)

at net.minecraft.entity.EntityLivingBase.onUpdate(EntityLivingBase.java:1557)

at net.minecraft.entity.EntityLiving.onUpdate(EntityLiving.java:206)

at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2019)

at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:659)

at net.minecraft.world.World.updateEntity(World.java:1983)

at net.minecraft.world.World.updateEntities(World.java:1836)

at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:500)

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:616)

at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:527)

at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:111)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:665)

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- Head --

Stacktrace:

at com.BI.Events.Drop_Event.onPlayerUpdate(Drop_Event.java:25)

at cpw.mods.fml.common.eventhandler.ASMEventHandler_5_Drop_Event_onPlayerUpdate_LivingUpdateEvent.invoke(.dynamic)

at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:51)

at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:122)

at net.minecraftforge.common.ForgeHooks.onLivingUpdate(ForgeHooks.java:271)

at net.minecraft.entity.EntityLivingBase.onUpdate(EntityLivingBase.java:1557)

at net.minecraft.entity.EntityLiving.onUpdate(EntityLiving.java:206)

at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2019)

at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:659)

at net.minecraft.world.World.updateEntity(World.java:1983)

 

-- Entity being ticked --

Details:

Entity Type: Chicken (net.minecraft.entity.passive.EntityChicken)

Entity ID: 0

Entity Name: Chicken

Entity's Exact location: -1318,50, 4,00, -641,50

Entity's Block location: World: (-1319,4,-642), Chunk: (at 9,0,14 in -83,-41; contains blocks -1328,0,-656 to -1313,255,-641), Region: (-3,-2; contains chunks -96,-64 to -65,-33, blocks -1536,0,-1024 to -1025,255,-513)

Entity's Momentum: 0,00, 0,00, 0,00

Stacktrace:

at net.minecraft.world.World.updateEntities(World.java:1836)

at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:500)

 

-- Affected level --

Details:

Level name: New World

All players: 0 total; []

Chunk stats: ServerChunkCache: 625 Drop: 0

Level seed: -7116471425880067642

Level generator: ID 01 - flat, ver 0. Features enabled: true

Level generator options:

Level spawn location: World: (-1237,4,-535), Chunk: (at 11,0,9 in -78,-34; contains blocks -1248,0,-544 to -1233,255,-529), Region: (-3,-2; contains chunks -96,-64 to -65,-33, blocks -1536,0,-1024 to -1025,255,-513)

Level time: 402 game time, 402 day time

Level dimension: 0

Level storage version: 0x04ABD - Anvil

Level weather: Rain time: 12862 (now: false), thunder time: 143009 (now: false)

Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true

Stacktrace:

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:616)

at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:527)

at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:111)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:665)

 

-- System Details --

Details:

Minecraft Version: 1.7.2

Operating System: Windows 7 (amd64) version 6.1

Java Version: 1.7.0_51, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 899256448 bytes (857 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML: MCP v9.01-pre FML v7.2.156.1056 Minecraft Forge 10.12.0.1056 4 mods loaded, 4 mods active

mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

FML{7.2.156.1056} [Forge Mod Loader] (forgeBin-1.7.2-10.12.0.1056.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Forge{10.12.0.1056} [Minecraft Forge] (forgeBin-1.7.2-10.12.0.1056.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

B&I Reloaded{0.1} [block and Items Reloaded] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Profiler Position: N/A (disabled)

Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

Player Count: 0 / 8; []

Type: Integrated Server (map_client.txt)

Is Modded: Definitely; Client brand changed to 'fml,forge'

#@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2014-04-14_19.57.24-server.txt

AL lib: (EE) alc_cleanup: 1 device not closed

 

 

Woking at my first mod, Blocks & Items Revolution : https://github.com/megabitus98/Blocks-Items-Revolution

Caused by: java.lang.ClassCastException: net.minecraft.entity.passive.EntityChicken cannot be cast to net.minecraft.entity.player.EntityPlayer

The LivingUpdateEvent triggers for all living things, including chickens (which, are not players).

Guest
This topic is now closed to further replies.

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.