Jump to content

ConcurrentModificationException error


Asweez

Recommended Posts

I'm trying the spawn in an arrow and this is the error:

 

 

 

[17:20:40] [main/INFO] [GradleStart]: username: Asweez
[17:20:40] [main/INFO] [GradleStart]: Extra: []
[17:20:40] [main/INFO] [GradleStart]: Password found, attempting login
[17:20:40] [main/INFO]: Logging in with username & password
[17:20:41] [main/INFO] [GradleStart]: Login Succesful!
[17:20:41] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, [], --assetsDir, /Users/Kids/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --userType, mojang, --accessToken, {REDACTED}, --version, 1.8, --uuid, f5cb1557227e4b58b571b98d4f5e2f34, --username, Asweez, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[17:20:41] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[17:20:41] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[17:20:41] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[17:20:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[17:20:41] [main/INFO] [FML]: Forge Mod Loader version 8.99.124.1450 for Minecraft 1.8 loading
[17:20:41] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_65, running on Mac OS X:x86_64:10.10.4, installed at /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre
[17:20:41] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[17:20:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[17:20:41] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[17:20:41] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[17:20:41] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[17:20:41] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[17:20:41] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[17:20:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[17:20:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[17:20:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[17:20:41] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[17:20:42] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[17:20:42] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[17:20:42] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[17:20:42] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[17:20:42] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[17:20:42] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[17:20:42] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[17:20:42] [Client thread/INFO]: Setting user: Asweez
[17:20:44] [Client thread/INFO]: LWJGL Version: 2.9.2
[17:20:45] [Client thread/INFO] [sTDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:235]: ---- Minecraft Crash Report ----
// Quite honestly, I wouldn't worry myself about that.

Time: 11/16/15 5:20 PM
Description: Loading screen debug info

This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR


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

-- System Details --
Details:
Minecraft Version: 1.8
Operating System: Mac OS X (x86_64) version 10.10.4
Java Version: 1.8.0_65, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 440160144 bytes (419 MB) / 533200896 bytes (508 MB) up to 1908932608 bytes (1820 MB)
JVM Flags: 0 total; 
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: 
Loaded coremods (and transformers): 
GL info: ' Vendor: 'Intel Inc.' Version: '2.1 INTEL-10.6.31' Renderer: 'Intel Iris Pro OpenGL Engine'
[17:20:45] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
[17:20:45] [Client thread/INFO] [FML]: MinecraftForge v11.14.3.1450 Initialized
[17:20:45] [Client thread/INFO] [FML]: Replaced 204 ore recipies
[17:20:45] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
[17:20:45] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[17:20:45] [Client thread/INFO] [FML]: Searching /Users/Kids/Desktop/MiniMods/Armor Stuff/mods for mods
[17:20:45] [Client thread/INFO] [hta]: Mod hta is missing the required element 'name'. Substituting hta
[17:20:46] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
[17:20:46] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, hta] at CLIENT
[17:20:46] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, hta] at SERVER
[17:20:46] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:hta
[17:20:46] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[17:20:46] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations
[17:20:46] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[17:20:46] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[17:20:46] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[17:20:46] [Client thread/INFO] [FML]: Applying holder lookups
[17:20:46] [Client thread/INFO] [FML]: Holder lookups applied
[17:20:46] [Client thread/INFO] [FML]: Injecting itemstacks
[17:20:46] [Client thread/INFO] [FML]: Itemstack injection complete
[17:20:46] [sound Library Loader/INFO]: Starting up SoundSystem...
[17:20:47] [Thread-8/INFO]: Initializing LWJGL OpenAL
[17:20:47] [Thread-8/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[17:20:47] [Thread-8/INFO]: OpenAL initialized.
[17:20:47] [sound Library Loader/INFO]: Sound engine started
[17:20:48] [Client thread/INFO]: Created: 512x512 textures-atlas
[17:20:48] [Client thread/INFO] [FML]: Injecting itemstacks
[17:20:48] [Client thread/INFO] [FML]: Itemstack injection complete
[17:20:48] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
[17:20:48] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:hta
[17:20:48] [Client thread/INFO]: SoundSystem shutting down...
[17:20:49] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
[17:20:49] [sound Library Loader/INFO]: Starting up SoundSystem...
[17:20:49] [Thread-10/INFO]: Initializing LWJGL OpenAL
[17:20:49] [Thread-10/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[17:20:49] [Thread-10/INFO]: OpenAL initialized.
[17:20:49] [sound Library Loader/INFO]: Sound engine started
[17:20:50] [Client thread/INFO]: Created: 512x512 textures-atlas
[17:21:11] [server thread/INFO]: Starting integrated minecraft server version 1.8
[17:21:11] [server thread/INFO]: Generating keypair
[17:21:11] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance
[17:21:11] [server thread/INFO] [FML]: Applying holder lookups
[17:21:11] [server thread/INFO] [FML]: Holder lookups applied
[17:21:11] [server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@314e4d95)
[17:21:11] [server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@314e4d95)
[17:21:11] [server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@314e4d95)
[17:21:11] [server thread/INFO]: Preparing start region for level 0
[17:21:12] [server thread/INFO]: Changing view distance to 12, from 10
[17:21:13] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2
[17:21:13] [Netty Server IO #1/INFO] [FML]: Client protocol version 2
[17:21:13] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected]
[17:21:13] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established
[17:21:13] [server thread/INFO] [FML]: [server thread] Server side modded connection established
[17:21:13] [server thread/INFO]: Asweez[local:E:a629aed5] logged in with entity id 386 at (40.62682487367457, 72.50776055217727, 194.9368228411861)
[17:21:13] [server thread/INFO]: Asweez joined the game
[17:21:16] [server thread/ERROR]: Encountered an unexpected exception
net.minecraft.util.ReportedException: Ticking entity
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:781) ~[MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:669) ~[MinecraftServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:171) ~[integratedServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:540) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_65]
Caused by: java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextNode(HashMap.java:1429) ~[?:1.8.0_65]
at java.util.HashMap$KeyIterator.next(HashMap.java:1453) ~[?:1.8.0_65]
at com.google.common.collect.AbstractMapBasedMultimap$WrappedCollection$WrappedIterator.next(AbstractMapBasedMultimap.java:486) ~[guava-17.0.jar:?]
at net.minecraft.util.ClassInheritanceMultiMap$2.computeNext(ClassInheritanceMultiMap.java:125) ~[forgeSrc-1.8-11.14.3.1450.jar:?]
at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) ~[guava-17.0.jar:?]
at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) ~[guava-17.0.jar:?]
at net.minecraft.world.chunk.Chunk.getEntitiesWithinAABBForEntity(Chunk.java:1065) ~[Chunk.class:?]
at net.minecraft.world.World.func_175674_a(World.java:3223) ~[World.class:?]
at net.minecraft.world.World.getEntitiesWithinAABBExcludingEntity(World.java:3206) ~[World.class:?]
at net.minecraft.world.World.getCollidingBoundingBoxes(World.java:1366) ~[World.class:?]
at net.minecraft.entity.Entity.moveEntity(Entity.java:639) ~[Entity.class:?]
at net.minecraft.entity.item.EntityItem.onUpdate(EntityItem.java:110) ~[EntityItem.class:?]
at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2031) ~[World.class:?]
at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:758) ~[WorldServer.class:?]
at net.minecraft.world.World.updateEntity(World.java:1997) ~[World.class:?]
at net.minecraft.world.World.updateEntities(World.java:1823) ~[World.class:?]
at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:587) ~[WorldServer.class:?]
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:775) ~[MinecraftServer.class:?]
... 4 more
[17:21:16] [server thread/ERROR]: This crash report has been saved to: /Users/Kids/Desktop/MiniMods/Armor Stuff/./crash-reports/crash-2015-11-16_17.21.16-server.txt
[17:21:16] [server thread/INFO]: Stopping server
[17:21:16] [server thread/INFO]: Saving players
[17:21:16] [server thread/INFO]: Saving worlds
[17:21:16] [server thread/INFO]: Saving chunks for level 'New World'/Overworld
[17:21:16] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:663]: ---- Minecraft Crash Report ----
// This doesn't make any sense!

Time: 11/16/15 5:21 PM
Description: Ticking entity

java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextNode(HashMap.java:1429)
at java.util.HashMap$KeyIterator.next(HashMap.java:1453)
at com.google.common.collect.AbstractMapBasedMultimap$WrappedCollection$WrappedIterator.next(AbstractMapBasedMultimap.java:486)
at net.minecraft.util.ClassInheritanceMultiMap$2.computeNext(ClassInheritanceMultiMap.java:125)
at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
at net.minecraft.world.chunk.Chunk.getEntitiesWithinAABBForEntity(Chunk.java:1065)
at net.minecraft.world.World.func_175674_a(World.java:3223)
at net.minecraft.world.World.getEntitiesWithinAABBExcludingEntity(World.java:3206)
at net.minecraft.world.World.getCollidingBoundingBoxes(World.java:1366)
at net.minecraft.entity.Entity.moveEntity(Entity.java:639)
at net.minecraft.entity.item.EntityItem.onUpdate(EntityItem.java:110)
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(Thread.java:745)


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

-- Head --
Stacktrace:
at java.util.HashMap$HashIterator.nextNode(HashMap.java:1429)
at java.util.HashMap$KeyIterator.next(HashMap.java:1453)
at com.google.common.collect.AbstractMapBasedMultimap$WrappedCollection$WrappedIterator.next(AbstractMapBasedMultimap.java:486)
at net.minecraft.util.ClassInheritanceMultiMap$2.computeNext(ClassInheritanceMultiMap.java:125)
at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
at net.minecraft.world.chunk.Chunk.getEntitiesWithinAABBForEntity(Chunk.java:1065)
at net.minecraft.world.World.func_175674_a(World.java:3223)
at net.minecraft.world.World.getEntitiesWithinAABBExcludingEntity(World.java:3206)
at net.minecraft.world.World.getCollidingBoundingBoxes(World.java:1366)
at net.minecraft.entity.Entity.moveEntity(Entity.java:639)
at net.minecraft.entity.item.EntityItem.onUpdate(EntityItem.java:110)
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: Item (net.minecraft.entity.item.EntityItem)
Entity ID: 204
Entity Name: item.item.egg
Entity's Exact location: 36.39, 67.00, 197.75
Entity's Block location: 36.00,67.00,197.00 - World: (36,67,197), Chunk: (at 4,4,5 in 2,12; contains blocks 32,0,192 to 47,255,207), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Entity's Momentum: -0.00, -0.04, 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['Asweez'/386, l='New World', x=46.61, y=72.51, z=198.79]]
Chunk stats: ServerChunkCache: 819 Drop: 0
Level seed: -8723371659538928650
Level generator: ID 00 - default, ver 1. Features enabled: true
Level generator options: 
Level spawn location: 100.00,64.00,252.00 - World: (100,64,252), Chunk: (at 4,4,12 in 6,15; contains blocks 96,0,240 to 111,255,255), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 35927 game time, 891 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 135093 (now: false), thunder time: 77541 (now: false)
Level game mode: Game mode: creative (ID 1). 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(Thread.java:745)

-- System Details --
Details:
Minecraft Version: 1.8
Operating System: Mac OS X (x86_64) version 10.10.4
Java Version: 1.8.0_65, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 287926880 bytes (274 MB) / 876085248 bytes (835 MB) up to 1908932608 bytes (1820 MB)
JVM Flags: 0 total; 
IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
FML: MCP v9.10 FML v8.0.99.99 Minecraft Forge 11.14.3.1450 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.1450.jar) 
UCHIJAAAA	Forge{11.14.3.1450} [Minecraft Forge] (forgeSrc-1.8-11.14.3.1450.jar) 
UCHIJAAAA	hta{1.0} [hta] (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['Asweez'/386, l='New World', x=46.61, y=72.51, z=198.79]]
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fml,forge'
[17:21:16] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:663]: #@!@# Game crashed! Crash report saved to: #@!@# ./crash-reports/crash-2015-11-16_17.21.16-server.txt
[17:21:16] [Client thread/INFO] [FML]: Waiting for the server to terminate/save.
[17:21:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: java.util.ConcurrentModificationException
[17:21:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: 	at java.util.HashMap$HashIterator.nextNode(HashMap.java:1429)
[17:21:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: 	at java.util.HashMap$KeyIterator.next(HashMap.java:1453)
[17:21:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: 	at com.google.common.collect.AbstractMapBasedMultimap$WrappedCollection$WrappedIterator.next(AbstractMapBasedMultimap.java:486)
[17:21:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: 	at net.minecraft.util.ClassInheritanceMultiMap$2.computeNext(ClassInheritanceMultiMap.java:125)
[17:21:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: 	at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
[17:21:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: 	at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
[17:21:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: 	at net.minecraft.world.chunk.storage.AnvilChunkLoader.writeChunkToNBT(AnvilChunkLoader.java:378)
[17:21:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: 	at net.minecraft.world.chunk.storage.AnvilChunkLoader.saveChunk(AnvilChunkLoader.java:193)
[17:21:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: 	at net.minecraft.world.gen.ChunkProviderServer.saveChunkData(ChunkProviderServer.java:266)
[17:21:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: 	at net.minecraft.world.gen.ChunkProviderServer.saveChunks(ChunkProviderServer.java:332)
[17:21:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: 	at net.minecraft.world.WorldServer.saveAllChunks(WorldServer.java:976)
[17:21:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: 	at net.minecraft.server.MinecraftServer.saveAllWorlds(MinecraftServer.java:419)
[17:21:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: 	at net.minecraft.server.MinecraftServer.stopServer(MinecraftServer.java:454)
[17:21:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: 	at net.minecraft.server.integrated.IntegratedServer.stopServer(IntegratedServer.java:356)
[17:21:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:593)
[17:21:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: 	at java.lang.Thread.run(Thread.java:745)
[17:21:16] [server thread/INFO]: Saving chunks for level 'New World'/Nether
[17:21:16] [server thread/INFO]: Saving chunks for level 'New World'/The End
[17:21:18] [server thread/INFO] [FML]: Unloading dimension 0
[17:21:18] [server thread/INFO] [FML]: Unloading dimension -1
[17:21:18] [server thread/INFO] [FML]: Unloading dimension 1
[17:21:18] [server thread/INFO] [FML]: Applying holder lookups
[17:21:18] [server thread/INFO] [FML]: Holder lookups applied
[17:21:18] [server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STOPPING and forced into state SERVER_STOPPED. Errors may have been discarded.
[17:21:18] [Client thread/INFO] [FML]: Server terminated.
AL lib: (EE) alc_cleanup: 1 device not closed

 

 

 

Here is the method:

 

@Override
public void onKeyPress(EntityPlayer player) {
	if(!player.worldObj.isRemote){
		EntityArrow arrow = new EntityArrow(player.worldObj, player, 2);
		player.worldObj.spawnEntityInWorld(arrow);
	}

}

 

This method is called by my KeyEventHandler which provides an EntityPlayerMP for the player. What am I doing wrong?

 

 

Creator of the MyFit, MagiCraft, Tesseract gun, and Papa's Wingeria mod.

Link to comment
Share on other sites

Ok I have a key handler that sends a packet to the server and the server receives that packet and calls the onKeyPress method. This keyPress method is part of the module classes we were talking about earlier

Creator of the MyFit, MagiCraft, Tesseract gun, and Papa's Wingeria mod.

Link to comment
Share on other sites

Ok did some testing it turns out that when I press the key (only once) the method is called a LOT and keeps getting called over and over. What could make this happen?

Hard to say without seeing your code, but I bet you're doing something like setting a field saying the key was pressed, then sending a packet as long as that is true.

 

What are you using to handle key presses? KeyInputEvent or one of the TickEvents? Show your whole class (or at least every piece of it related to handling keys) and any related classes.

Link to comment
Share on other sites

Ok did some testing it turns out that when I press the key (only once) the method is called a LOT and keeps getting called over and over. What could make this happen?

 

Depending on what keyboard event your listening to, you're likely asking

isKeyDown(key)

which will be true for the entire duration that the key is pressed.  Which as the code runs 60+ times a second* and a press lasts a tenth of a second...that's at least 6 calls.

 

*Pretty much as fast as the program runs, not tied to game ticks in any way.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Code:

package com.apmods.hta.handler;

import com.apmods.hta.key.HTAKeys;
import com.apmods.hta.network.AttackKeyPackage;
import com.apmods.hta.network.HTANetwork;

import net.minecraft.client.Minecraft;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.common.gameevent.InputEvent.KeyInputEvent;

public class HTAKeyHandler {
@SubscribeEvent
public void keyDown(KeyInputEvent event){
	if(HTAKeys.attack1.isPressed()){
		if(Minecraft.getMinecraft().inGameHasFocus){
			HTANetwork.net.sendToServer(new AttackKeyPackage.KeyMessage(1));
		}
	}
	else if(HTAKeys.attack2.isPressed()){
		if(Minecraft.getMinecraft().inGameHasFocus){
			HTANetwork.net.sendToServer(new AttackKeyPackage.KeyMessage(2));
		}
	}
}
}

 

And when I press it and let go of the key, it just keeps calling the method

Creator of the MyFit, MagiCraft, Tesseract gun, and Papa's Wingeria mod.

Link to comment
Share on other sites

KeyInputEvent fires both when a key is pressed and when it is released, AND it fires for every single key on the keyboard, not just ones you may want to listen to.

 

You need to check Keyboard.getEventKey() and compare it to the keyCodes of your KeyBindings, and also check Keyboard.getEventState() which is true when the key is pressed.

Link to comment
Share on other sites

Ok this is really weird. When I press the key, even with your code:

if(Keyboard.getEventKey() == HTAKeys.attack1.getKeyCode() && Keyboard.getEventKeyState()){
		if(Minecraft.getMinecraft().inGameHasFocus){
			HTANetwork.net.sendToServer(new AttackKeyPackage.KeyMessage(1));
		}
	}

 

It will constantly put out "key pressed" in the console, even when I quit the world it keeps going. What is going on?

Creator of the MyFit, MagiCraft, Tesseract gun, and Papa's Wingeria mod.

Link to comment
Share on other sites

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • OLXTOTO: Platform Maxwin dan Gacor Terbesar Sepanjang Masa OLXTOTO telah menetapkan standar baru dalam dunia perjudian dengan menjadi platform terbesar untuk pengalaman gaming yang penuh kemenangan dan kegacoran, sepanjang masa. Dengan fokus yang kuat pada menyediakan permainan yang menghadirkan kesenangan tanpa batas dan peluang kemenangan besar, OLXTOTO telah menjadi pilihan utama bagi para pencinta judi berani di Indonesia. Maxwin: Mengejar Kemenangan Terbesar Maxwin bukan sekadar kata-kata kosong di OLXTOTO. Ini adalah konsep yang ditanamkan dalam setiap aspek permainan yang mereka tawarkan. Dari permainan slot yang menghadirkan jackpot besar hingga berbagai opsi permainan togel dengan hadiah fantastis, para pemain dapat memperoleh peluang nyata untuk mencapai kemenangan terbesar dalam setiap taruhan yang mereka lakukan. OLXTOTO tidak hanya menawarkan kesempatan untuk menang, tetapi juga menjadi wadah bagi para pemain untuk meraih impian mereka dalam perjudian yang berani. Gacor: Keberuntungan yang Tak Tertandingi Keberuntungan seringkali menjadi faktor penting dalam perjudian, dan OLXTOTO memahami betul akan hal ini. Dengan berbagai strategi dan analisis yang disediakan, pemain dapat menemukan peluang gacor yang tidak tertandingi dalam setiap taruhan. Dari hasil togel yang tepat hingga putaran slot yang menguntungkan, OLXTOTO memastikan bahwa setiap taruhan memiliki potensi untuk menjadi momen yang mengubah hidup. Inovasi dan Kualitas Tanpa Batas Tidak puas dengan prestasi masa lalu, OLXTOTO terus berinovasi untuk memberikan pengalaman gaming terbaik kepada para pengguna. Dengan menggabungkan teknologi terbaru dengan desain yang ramah pengguna, platform ini menyajikan antarmuka yang mudah digunakan tanpa mengorbankan kualitas. Setiap pembaruan dan peningkatan dilakukan dengan tujuan tunggal: memberikan pengalaman gaming yang tanpa kompromi kepada setiap pengguna. Komitmen Terhadap Kepuasan Pelanggan Di balik kesuksesan OLXTOTO adalah komitmen mereka terhadap kepuasan pelanggan. Tim dukungan pelanggan yang profesional siap membantu para pemain dalam setiap langkah perjalanan gaming mereka. Dari pertanyaan teknis hingga bantuan dengan transaksi keuangan, OLXTOTO selalu siap memberikan pelayanan terbaik kepada para pengguna mereka. Penutup: Mengukir Sejarah dalam Dunia Perjudian Daring OLXTOTO bukan sekadar platform perjudian berani biasa. Ini adalah ikon dalam dunia perjudian daring Indonesia, sebuah destinasi yang menyatukan kemenangan dan keberuntungan dalam satu tempat yang mengasyikkan. Dengan komitmen mereka terhadap kualitas, inovasi, dan kepuasan pelanggan, OLXTOTO terus mengukir sejarah dalam perjudian dunia berani, menjadi nama yang tak terpisahkan dari pengalaman gaming terbaik. Bersiaplah untuk mengalami sensasi kemenangan terbesar dan keberuntungan tak terduga di OLXTOTO - platform maxwin dan gacor terbesar sepanjang masa.
    • OLXTOTO - Bandar Togel Online Dan Slot Terbesar Di Indonesia OLXTOTO telah lama dikenal sebagai salah satu bandar online terkemuka di Indonesia, terutama dalam pasar togel dan slot. Dengan reputasi yang solid dan pengalaman bertahun-tahun, OLXTOTO menawarkan platform yang aman dan andal bagi para penggemar perjudian daring. DAFTAR OLXTOTO DISINI DAFTAR OLXTOTO DISINI DAFTAR OLXTOTO DISINI Beragam Permainan Togel Sebagai bandar online terbesar di Indonesia, OLXTOTO menawarkan berbagai macam permainan togel. Mulai dari togel Singapura, togel Hongkong, hingga togel Sidney, pemain memiliki banyak pilihan untuk mencoba keberuntungan mereka. Dengan sistem yang transparan dan hasil yang adil, OLXTOTO memastikan bahwa setiap taruhan diproses dengan cepat dan tanpa keadaan. Slot Online Berkualitas Selain togel, OLXTOTO juga menawarkan berbagai permainan slot online yang menarik. Dari slot klasik hingga slot video modern, pemain dapat menemukan berbagai opsi permainan yang sesuai dengan preferensi mereka. Dengan grafis yang memukau dan fitur bonus yang menggiurkan, pengalaman bermain slot di OLXTOTO tidak akan pernah membosankan. Keamanan dan Kepuasan Pelanggan Terjamin Keamanan dan kepuasan pelanggan merupakan prioritas utama di OLXTOTO. Mereka menggunakan teknologi enkripsi terbaru untuk melindungi data pribadi dan keuangan para pemain. Tim dukungan pelanggan yang ramah dan responsif siap membantu pemain dengan setiap pertanyaan atau masalah yang mereka hadapi. Promosi dan Bonus Menarik OLXTOTO sering menawarkan promosi dan bonus menarik kepada para pemainnya. Mulai dari bonus selamat datang hingga bonus deposit, pemain memiliki kesempatan untuk meningkatkan kemenangan mereka dengan memanfaatkan berbagai penawaran yang tersedia. Penutup Dengan reputasi yang solid, beragam permainan berkualitas, dan komitmen terhadap keamanan dan kepuasan pelanggan, OLXTOTO tetap menjadi salah satu pilihan utama bagi para pecinta judi online di Indonesia. Jika Anda mencari pengalaman berjudi yang menyenangkan dan terpercaya, OLXTOTO layak dipertimbangkan.
    • I have been having a problem with minecraft forge. Any version. Everytime I try to launch it it always comes back with error code 1. I have tried launching from curseforge, from the minecraft launcher. I have also tried resetting my computer to see if that would help. It works on my other computer but that one is too old to run it properly. I have tried with and without mods aswell. Fabric works, optifine works, and MultiMC works aswell but i want to use forge. If you can help with this issue please DM on discord my # is Haole_Dawg#6676
    • Add the latest.log (logs-folder) with sites like https://paste.ee/ and paste the link to it here  
    • I have no idea how a UI mod crashed a whole world but HUGE props to you man, just saved me +2 months of progress!  
  • Topics

×
×
  • Create New...

Important Information

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