Posted August 28, 201510 yr Whatever i open Custom furnace game freezes for 1-3 seconds and then crashes on desktop. If i do not interact with a block...it works. CrashLog ---- Minecraft Crash Report ---- // Hey, that tickles! Hehehe! Time: 8/28/15 8:49 PM Description: Ticking entity java.lang.NullPointerException: Ticking entity at com.vladan899.container.ContainerOreSmasher.detectAndSendChanges(ContainerOreSmasher.java:87) at net.minecraft.entity.player.EntityPlayerMP.onUpdate(EntityPlayerMP.java:263) at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2031) at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:758) at net.minecraft.world.World.updateEntity(World.java:1997) at net.minecraft.world.World.updateEntities(World.java:1823) at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:587) at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:775) at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:669) at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:171) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:540) at java.lang.Thread.run(Unknown Source) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at com.vladan899.container.ContainerOreSmasher.detectAndSendChanges(ContainerOreSmasher.java:87) at net.minecraft.entity.player.EntityPlayerMP.onUpdate(EntityPlayerMP.java:263) at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2031) at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:758) at net.minecraft.world.World.updateEntity(World.java:1997) -- Entity being ticked -- Details: Entity Type: null (net.minecraft.entity.player.EntityPlayerMP) Entity ID: 181 Entity Name: Player460 Entity's Exact location: 206.53, 63.00, 159.00 Entity's Block location: 206.00,63.00,159.00 - World: (206,63,159), Chunk: (at 14,3,15 in 12,9; contains blocks 192,0,144 to 207,255,159), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511) Entity's Momentum: 0.00, -0.08, 0.00 Entity's Rider: ~~ERROR~~ NullPointerException: null Entity's Vehicle: ~~ERROR~~ NullPointerException: null Stacktrace: at net.minecraft.world.World.updateEntities(World.java:1823) at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:587) -- Affected level -- Details: Level name: New World All players: 1 total; [EntityPlayerMP['Player460'/181, l='New World', x=206.53, y=63.00, z=159.00]] Chunk stats: ServerChunkCache: 625 Drop: 0 Level seed: 1024147731026552001 Level generator: ID 00 - default, ver 1. Features enabled: true Level generator options: Level spawn location: 212.00,64.00,164.00 - World: (212,64,164), Chunk: (at 4,4,4 in 13,10; contains blocks 208,0,160 to 223,255,175), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511) Level time: 27815 game time, 27815 day time Level dimension: 0 Level storage version: 0x04ABD - Anvil Level weather: Rain time: 95848 (now: false), thunder time: 101675 (now: false) Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: true Stacktrace: at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:775) at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:669) at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:171) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:540) at java.lang.Thread.run(Unknown Source) -- System Details -- Details: Minecraft Version: 1.8 Operating System: Windows 8.1 (amd64) version 6.3 Java Version: 1.8.0_51, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 806670504 bytes (769 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95 FML: MCP v9.10 FML v8.0.99.99 Minecraft Forge 11.14.3.1499 4 mods loaded, 4 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCHIJAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) UCHIJAAAA FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.8-11.14.3.1499.jar) UCHIJAAAA Forge{11.14.3.1499} [Minecraft Forge] (forgeSrc-1.8-11.14.3.1499.jar) UCHIJAAAA expansion{Alpha 0.0.5} [Expansion: Overhaul] (bin) Loaded coremods (and transformers): GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread. Profiler Position: N/A (disabled) Player Count: 1 / 8; [EntityPlayerMP['Player460'/181, l='New World', x=206.53, y=63.00, z=159.00]] Type: Integrated Server (map_client.txt) Is Modded: Definitely; Client brand changed to 'fml,forge' Github https://github.com/Vladan899/MoreIndustries I know it has something to do with .ContainerOreSmasher.detectAndSendChanges...but i do not know what?
August 28, 201510 yr Author You never initialize this field, therefor it stays null. I highly recommend you put the final modifier on fields that you will not change, because that would make this situation cause an error. That fixed it... Do i create another post...cuz it seems that i have new issue....
August 28, 201510 yr Author custom furnace recipe...for this machine dose not work. As soon i place fuel in slot....block switch state from inactive to active...even tough there is nothing to be smelted....ie no item in smelting slot.
August 28, 201510 yr Author Also, the general logic in update is flawed. You just set the current burn time without condition every tick. That doesn't seem right. this better? boolean hasBeenSmelting = this.isBurning(); boolean changeSmeltingState = false; if (this.isBurning()) { --this.burnTime; } if (!this.worldObj.isRemote) { if (!this.isBurning() && (this.Total_slots[1] == null || this.Total_slots[0] == null)) { if (!this.isBurning() && this.cookTime > 0) { this.cookTime = MathHelper.clamp_int(this.cookTime - 2, 0, this.cookTime); } } else { if (!this.isBurning() && this.canSmelt()) { this.currentItemBurnTime = this.burnTime = getItemBurnTime(this.Total_slots[1]); if (this.isBurning()) { changeSmeltingState = true; if (this.Total_slots[1] != null) { --this.Total_slots[1].stackSize; if (this.Total_slots[1].stackSize == 0) { this.Total_slots[1] = Total_slots[1].getItem().getContainerItem(Total_slots[1]); } } } } if (this.isBurning() && this.canSmelt()) { ++this.cookTime; if (this.cookTime == this.furnaceSpeed) { this.cookTime = 0; this.smeltItem(); changeSmeltingState = true; } } else { this.cookTime = 0; } } if (hasBeenSmelting != this.isBurning()) { changeSmeltingState = true; BlockMachineSmasher.setState(this.isBurning(), this.worldObj, this.pos); } } if (changeSmeltingState) { this.markDirty(); }
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.