Jump to content

Recommended Posts

Posted

Hey guys, I have a problem. After I modded a little bit, when I start Minecraft and ENTER a world it crashes. This is that it tells me: AL lib: (EE) alc_cleanup: 1 device not closed. And this is the crash report:

 

---- Minecraft Crash Report ----

// I'm sorry, Dave.

 

Time: 6/26/14 5:59 PM

Description: Ticking entity

 

java.lang.NullPointerException: Ticking entity

at com.NeverMind.SonOfGods.PlayerEventHandler.onPlayerTickEvent(PlayerEventHandler.java:32)

at cpw.mods.fml.common.eventhandler.ASMEventHandler_4_PlayerEventHandler_onPlayerTickEvent_PlayerTickEvent.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 cpw.mods.fml.common.FMLCommonHandler.onPlayerPreTick(FMLCommonHandler.java:344)

at net.minecraft.entity.player.EntityPlayer.onUpdate(EntityPlayer.java:274)

at net.minecraft.client.entity.EntityClientPlayerMP.onUpdate(EntityClientPlayerMP.java:100)

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

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

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

at net.minecraft.client.Minecraft.runTick(Minecraft.java:2064)

at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:996)

at net.minecraft.client.Minecraft.run(Minecraft.java:912)

at net.minecraft.client.main.Main.main(Main.java:112)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:483)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

 

 

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

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

 

-- Head --

Stacktrace:

at com.NeverMind.SonOfGods.PlayerEventHandler.onPlayerTickEvent(PlayerEventHandler.java:32)

at cpw.mods.fml.common.eventhandler.ASMEventHandler_4_PlayerEventHandler_onPlayerTickEvent_PlayerTickEvent.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 cpw.mods.fml.common.FMLCommonHandler.onPlayerPreTick(FMLCommonHandler.java:344)

at net.minecraft.entity.player.EntityPlayer.onUpdate(EntityPlayer.java:274)

at net.minecraft.client.entity.EntityClientPlayerMP.onUpdate(EntityClientPlayerMP.java:100)

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

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

 

-- Entity being ticked --

Details:

Entity Type: null (net.minecraft.client.entity.EntityClientPlayerMP)

Entity ID: 130

Entity Name: Player33

Entity's Exact location: 43.51, 5.62, -977.75

Entity's Block location: World: (43,5,-978), Chunk: (at 11,0,14 in 2,-62; contains blocks 32,0,-992 to 47,255,-977), Region: (0,-2; contains chunks 0,-64 to 31,-33, blocks 0,0,-1024 to 511,255,-513)

Entity's Momentum: 0.10, -0.08, 0.02

Stacktrace:

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

 

-- Affected level --

Details:

Level name: MpServer

All players: 1 total; [EntityClientPlayerMP['Player33'/130, l='MpServer', x=43.51, y=5.62, z=-977.75]]

Chunk stats: MultiplayerChunkCache: 225, 225

Level seed: 0

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

Level generator options:

Level spawn location: World: (31,4,-970), Chunk: (at 15,0,6 in 1,-61; contains blocks 16,0,-976 to 31,255,-961), Region: (0,-2; contains chunks 0,-64 to 31,-33, blocks 0,0,-1024 to 511,255,-513)

Level time: 889 game time, 889 day time

Level dimension: 0

Level storage version: 0x00000 - Unknown?

Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)

Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false

Forced entities: 47 total; [EntityCow['Cow'/64, l='MpServer', x=101.22, y=4.00, z=-951.41], EntityChicken['Chicken'/65, l='MpServer', x=97.50, y=4.00, z=-943.50], EntityCow['Cow'/66, l='MpServer', x=97.69, y=4.00, z=-940.31], EntityCow['Cow'/67, l='MpServer', x=98.91, y=4.00, z=-945.76], EntityChicken['Chicken'/68, l='MpServer', x=111.63, y=4.00, z=-905.56], EntityPig['Pig'/11, l='MpServer', x=-10.19, y=4.00, z=-915.03], EntityChicken['Chicken'/75, l='MpServer', x=121.09, y=4.00, z=-1029.09], EntityPig['Pig'/12, l='MpServer', x=-5.78, y=4.00, z=-920.91], EntityPig['Pig'/13, l='MpServer', x=-7.09, y=4.00, z=-922.19], EntityChicken['Chicken'/77, l='MpServer', x=119.66, y=4.00, z=-1032.66], EntityChicken['Chicken'/14, l='MpServer', x=-8.97, y=4.00, z=-912.66], EntityChicken['Chicken'/15, l='MpServer', x=-10.50, y=4.00, z=-914.19], EntityHorse['Horse'/79, l='MpServer', x=119.50, y=4.00, z=-1038.50], EntityChicken['Chicken'/16, l='MpServer', x=-6.81, y=4.00, z=-918.47], EntityChicken['Chicken'/80, l='MpServer', x=119.31, y=4.00, z=-912.38], EntitySheep['Sheep'/17, l='MpServer', x=-5.31, y=4.00, z=-912.88], EntitySheep['Sheep'/18, l='MpServer', x=-1.94, y=4.00, z=-919.91], EntityCow['Cow'/82, l='MpServer', x=118.03, y=4.00, z=-915.91], EntityCow['Cow'/83, l='MpServer', x=116.50, y=4.00, z=-913.50], EntitySheep['Sheep'/19, l='MpServer', x=-11.66, y=4.00, z=-909.72], EntityCow['Cow'/84, l='MpServer', x=118.50, y=4.00, z=-908.50], EntityChicken['Chicken'/20, l='MpServer', x=-5.59, y=4.00, z=-918.38], EntitySheep['Sheep'/21, l='MpServer', x=15.91, y=4.00, z=-933.50], EntityCow['Cow'/86, l='MpServer', x=115.50, y=4.00, z=-904.50], EntityCow['Cow'/23, l='MpServer', x=26.75, y=4.00, z=-934.50], EntityCow['Cow'/87, l='MpServer', x=116.06, y=4.00, z=-910.16], EntityCow['Cow'/24, l='MpServer', x=23.50, y=4.00, z=-932.50], EntityCow['Cow'/88, l='MpServer', x=113.63, y=4.00, z=-908.66], EntityCow['Cow'/25, l='MpServer', x=22.31, y=4.00, z=-943.72], EntityCow['Cow'/89, l='MpServer', x=113.13, y=4.00, z=-906.03], EntityCow['Cow'/26, l='MpServer', x=19.31, y=4.00, z=-939.69], EntitySheep['Sheep'/27, l='MpServer', x=20.81, y=4.00, z=-934.19], EntitySheep['Sheep'/28, l='MpServer', x=20.18, y=4.00, z=-937.39], EntitySheep['Sheep'/29, l='MpServer', x=14.28, y=4.00, z=-940.50], EntitySheep['Sheep'/30, l='MpServer', x=18.95, y=4.00, z=-936.99], EntitySheep['Sheep'/31, l='MpServer', x=24.03, y=4.00, z=-923.06], EntitySheep['Sheep'/32, l='MpServer', x=21.50, y=4.00, z=-929.50], EntitySheep['Sheep'/33, l='MpServer', x=17.81, y=4.00, z=-932.19], EntityChicken['Chicken'/45, l='MpServer', x=93.31, y=4.00, z=-944.69], EntityChicken['Chicken'/46, l='MpServer', x=92.56, y=4.00, z=-945.56], EntityPig['Pig'/47, l='MpServer', x=94.09, y=4.00, z=-951.25], EntityCow['Cow'/48, l='MpServer', x=94.50, y=4.00, z=-938.50], EntityClientPlayerMP['Player33'/130, l='MpServer', x=43.51, y=5.62, z=-977.75], EntityChicken['Chicken'/60, l='MpServer', x=98.22, y=4.00, z=-944.44], EntityPig['Pig'/61, l='MpServer', x=100.59, y=4.00, z=-945.20], EntityPig['Pig'/62, l='MpServer', x=90.12, y=4.00, z=-954.31], EntityPig['Pig'/63, l='MpServer', x=98.53, y=4.00, z=-950.59]]

Retry entities: 0 total; []

Server brand: fml,forge

Server type: Integrated singleplayer server

Stacktrace:

at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:412)

at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2523)

at net.minecraft.client.Minecraft.run(Minecraft.java:934)

at net.minecraft.client.main.Main.main(Main.java:112)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:483)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

 

-- System Details --

Details:

Minecraft Version: 1.7.2

Operating System: Windows 7 (amd64) version 6.1

Java Version: 1.8.0_05, Oracle Corporation

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

Memory: 842413152 bytes (803 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)

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

AABB Pool Size: 20239 (1133384 bytes; 1 MB) allocated, 2 (112 bytes; 0 MB) used

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

FML: MCP v9.03 FML v7.2.211.1121 Minecraft Forge 10.12.2.1121 6 mods loaded, 6 mods active

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

FML{7.2.211.1121} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.2.1121.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

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

examplemod{1.0} [Example Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

SonOfGods{1.0} [sonOfGods] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

NeverMind{1.0} [FirstMod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Launched Version: 1.6

LWJGL: 2.9.0

OpenGL: GeForce GTX 560 Ti/PCIe/SSE2 GL version 4.4.0, NVIDIA Corporation

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

Type: Client (map_client.txt)

Resource Packs: []

Current Language: English (US)

Profiler Position: N/A (disabled)

Vec3 Pool Size: 1155 (64680 bytes; 0 MB) allocated, 16 (896 bytes; 0 MB) used

Anisotropic Filtering: Off (1)

Posted

public class PlayerEventHandler {

@SubscribeEvent

public void onPlayerTickEvent(PlayerTickEvent event) {

 

EntityPlayer player = (EntityPlayer)event.player;

 

ItemStack helditem = player.getHeldItem();

 

int x, y, z;

x = player.chunkCoordX;

y = player.chunkCoordY;

z = player.chunkCoordZ;

World world;

world = player.getEntityWorld();

 

if (helditem.isItemEqual(new ItemStack (SonOfGods.TalismanOfGods)))

SonOfGods.held = true;

else

SonOfGods.held = false;

if (player.inventory.hasItem(Items.diamond))

SonOfGods.ifdiamond = true;

if (SonOfGods.held = true && SonOfGods.ifdiamond == true)

{

world.addWeatherEffect(new EntityLightningBolt(world,x,y,z));

player.addPotionEffect(new PotionEffect(Potion.moveSpeed.getId(),1000,4));

}

}

 

}

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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