I tried to use a method to change the water into ice :
if (block == Blocks.water && meta == 0) {
world.setBlock(aX, aY, aZ, Blocks.ice, 0, 2);
}
However when I using this item to test, the game crashed.
I even removed my item and tried to open another save which didn’t load my item, but it still crashed.
The new saves which I created later also crashed.(With GT6 but without my item)
Here is the crash report:
Time: 22-2-26 下午11:57
Description: Exception ticking world
java.lang.NoSuchMethodError: net.minecraft.block.BlockStaticLiquid.func_149688_o()Lnet/minecraft/block/material/Material;
at gregtech.asm.transformers.minecraft.Replacements.BlockStaticLiquid_updateTick(Replacements.java:75)
at net.minecraft.block.BlockStaticLiquid.updateTick(BlockStaticLiquid.java)
at net.minecraft.world.WorldServer.func_147456_g(WorldServer.java:408)
at net.minecraft.world.WorldServer.tick(WorldServer.java:191)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:692)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Stacktrace:
at gregtech.asm.transformers.minecraft.Replacements.BlockStaticLiquid_updateTick(Replacements.java:75)
at net.minecraft.block.BlockStaticLiquid.updateTick(BlockStaticLiquid.java)
at net.minecraft.world.WorldServer.func_147456_g(WorldServer.java:408)
at net.minecraft.world.WorldServer.tick(WorldServer.java:191)
-- Affected level --
Details:
Level name: New World
All players: 1 total; [EntityPlayerMP['Player14'/207, l='New World', x=-65.51, y=68.00, z=-138.60]]
Chunk stats: ServerChunkCache: 625 Drop: 0
Level seed: 5832216495663292076
Level generator: ID 00 - default, ver 1. Features enabled: true
Level generator options:
Level spawn location: World: (-52,69,-145), Chunk: (at 12,4,15 in -4,-10; contains blocks -64,0,-160 to -49,255,-145), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1)
Level time: 27224 game time, 4348 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 70287 (now: false), thunder time: 121007 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
Stacktrace:
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:692)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)
-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_301, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 749055512 bytes (714 MB) / 2075918336 bytes (1979 MB) up to 2075918336 bytes (1979 MB)
JVM Flags: 3 total; -Xincgc -Xmx2048M -Xms2048M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 9, tcache: 0, allocated: 12, tallocated: 94
FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1614 18 mods loaded, 18 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{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar)
UCHIJAAAA Forge{10.13.4.1614} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar)
UCHIJAAAA NotEnoughItems{1.0.5.120} [Not Enough Items] (NotEnoughItems-1.7.10-1.0.5.120-dev.jar)
UCHIJAAAA CodeChickenCore{1.0.7.47} [CodeChicken Core] (minecraft.jar)
UCHIJAAAA GT_ASM{6.14.11} [Greg-ASM?] (minecraft.jar)
UCHIJAAAA <CoFH ASM>{000} [CoFH ASM] (minecraft.jar)
UCHIJAAAA Waila{1.5.11} [Waila] (Waila-1.5.11-RC2-NONEI_1.7.10-dev.jar)
UCHIJAAAA MineTweaker3{3.0.10} [MineTweaker 3] (MineTweaker3-1.7.10-3.0.10B.jar)
UCHIJAAAA gregapi{GT6-MC1710} [Greg-API] (gregtech_1.7.10-6.14.23.jar)
UCHIJAAAA BiomesOPlenty{2.1.0} [Biomes O' Plenty] (BiomesOPlenty-1.7.10-2.1.0.2308-universal.jar)
UCHIJAAAA Avaritia{1.19} [Avaritia] (Avaritia-1.19.jar)
UCHIJAAAA CoFHCore{1.7.10R3.1.4} [CoFH Core] (CoFHCore-[1.7.10]3.1.4-329.jar)
UCHIJAAAA endercore{1.7.10-0.2.0.39_beta} [EnderCore] (EnderCore-1.7.10-0.2.0.39_beta.jar)
UCHIJAAAA EnderIO{1.7.10-2.3.0.429_beta} [Ender IO] (EnderIO-1.7.10-2.3.0.429_beta.jar)
UCHIJAAAA IC2{2.2.828-experimental} [IndustrialCraft 2] (industrialcraft-2-2.2.828-experimental.jar)
UCHIJAAAA gregapi_post{GT6-MC1710} [Greg-API-Post] (gregtech_1.7.10-6.14.23.jar)
UCHIJAAAA gregtech{GT6-MC1710} [GregTech] (gregtech_1.7.10-6.14.23.jar)
GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
CoFHCore: -[1.7.10]3.1.4-329
EnderIO: No known problems detected.
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Player Count: 1 / 8; [EntityPlayerMP['Player14'/207, l='New World', x=-65.51, y=68.00, z=-138.60]]
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fml,forge'
[23:57:01] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:393]: #@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2022-02-26_23.56.59-server.txt
AL lib: (EE) alc_cleanup: 1 device not closed
About Replacements.java:75 :
} else if (block.func_149688_o().func_76230_c()) {
return;