Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on servers #147

Open
HyCraftHD opened this issue Feb 22, 2020 · 4 comments
Open

Crash on servers #147

HyCraftHD opened this issue Feb 22, 2020 · 4 comments

Comments

@HyCraftHD
Copy link

This method will crash the server as it uses a client only class (I18n)

EquivalentEnergistics.logger.warn("Invalid EMC pattern detected. Item: " + I18n.format(pattern.getOutputs()[0].getItem().getUnlocalizedName(pattern.getOutputs()[0].createItemStack()) + ".name", new Object[0]) + " EMC: " + String.format("%f", pattern.outputEMC));

java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: net/minecraft/client/resources/I18n
	at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_232]
	at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_232]
	at net.minecraft.util.Util.runTask(SourceFile:531) [h.class:?]
	at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:723) [MinecraftServer.class:?]
	at net.minecraft.server.dedicated.DedicatedServer.updateTimeLightAndEntities(DedicatedServer.java:397) [nz.class:?]
	at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:668) [MinecraftServer.class:?]
	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) [MinecraftServer.class:?]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_232]
Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/resources/I18n
	at com.mordenkainen.equivalentenergistics.integration.ae2.cache.crafting.EMCCraftingGrid.createPattern(EMCCraftingGrid.java:154) ~[EMCCraftingGrid.class:?]
	at com.mordenkainen.equivalentenergistics.integration.ae2.cache.crafting.EMCCraftingGrid.addPattern(EMCCraftingGrid.java:85) ~[EMCCraftingGrid.class:?]
	at com.mordenkainen.equivalentenergistics.integration.ae2.cache.crafting.EMCCraftingGrid.updatePatterns(EMCCraftingGrid.java:77) ~[EMCCraftingGrid.class:?]
	at com.mordenkainen.equivalentenergistics.integration.ae2.grid.GridUtils.updatePatterns(GridUtils.java:200) ~[GridUtils.class:?]
	at com.mordenkainen.equivalentenergistics.blocks.crafter.tiles.TileEMCCrafter.setCurrentTome(TileEMCCrafter.java:159) ~[TileEMCCrafter.class:?]
	at com.mordenkainen.equivalentenergistics.blocks.crafter.BlockEMCCrafter.onBlockActivated(BlockEMCCrafter.java:88) ~[BlockEMCCrafter.class:?]
	at net.minecraft.server.management.PlayerInteractionManager.processRightClickBlock(PlayerInteractionManager.java:449) ~[or.class:?]
	at net.minecraft.network.NetHandlerPlayServer.processTryUseItemOnBlock(NetHandlerPlayServer.java:741) ~[pa.class:?]
	at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(SourceFile:55) ~[ma.class:?]
	at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(SourceFile:11) ~[ma.class:?]
	at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) ~[hv$1.class:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_232]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_232]
	at net.minecraft.util.Util.runTask(SourceFile:529) ~[h.class:?]
@Mordenkainen
Copy link
Owner

Thanks. Did not realize that was a client only class

@Jinaie
Copy link

Jinaie commented Apr 27, 2020

still nothing to resolve this ive got the same error =p

@ewanm89
Copy link

ewanm89 commented May 2, 2020

@Jinaie that would be why the bug report is still open, it is pending to be in the next release.

@Jinaie
Copy link

Jinaie commented May 3, 2020

@Jinaie that would be why the bug report is still open, it is pending to be in the next release.

AH ! I didnt know XD I quite new to this and quite easely panicking to error i get XD. So do we have a date for the new release ? =p

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants