MCreator Mod Multiplayer Crash

Started by LaTortiia on

Topic category: Troubleshooting, bugs, and solutions

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
MCreator Mod Multiplayer Crash

So, I have been developing a mod for Minecraft 1.15.2 and I constantly get this crash when playing in a server, I'll add the crash report below:

 

Time: 1/17/21 9:11 PM
Description: Ticking entity

java.lang.ClassCastException: net.minecraft.client.entity.player.RemoteClientPlayerEntity cannot be cast to net.minecraft.client.entity.player.ClientPlayerEntity
    at net.mcreator.afterwarmod.procedures.Y50WarningProcedure$1.checkGamemode(Y50WarningProcedure.java:72) ~[?:?] {re:classloading}
    at net.mcreator.afterwarmod.procedures.Y50WarningProcedure.executeProcedure(Y50WarningProcedure.java:78) ~[?:?] {re:classloading}
    at net.mcreator.afterwarmod.procedures.Y50WarningProcedure.onPlayerTick(Y50WarningProcedure.java:176) ~[?:?] {re:classloading}
    at net.minecraftforge.eventbus.ASMEventHandler_6_Y50WarningProcedure_onPlayerTick_PlayerTickEvent.invoke(.dynamic) ~[?:?] {}
    at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:80) ~[eventbus-2.2.0-service.jar:?] {}
    at net.minecraftforge.eventbus.EventBus.post(EventBus.java:258) ~[eventbus-2.2.0-service.jar:?] {}
    at net.minecraftforge.fml.hooks.BasicEventHooks.onPlayerPostTick(BasicEventHooks.java:89) ~[?:?] {re:classloading}
    at net.minecraft.entity.player.PlayerEntity.func_70071_h_(PlayerEntity.java:280) ~[?:?] {re:classloading,pl:accesstransformer:B,xf:fml:xaerominimap:xaero_playerentity_iswearing}
    at net.minecraft.client.entity.player.RemoteClientPlayerEntity.func_70071_h_(RemoteClientPlayerEntity.java:36) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
    at net.minecraft.client.world.ClientWorld.func_217418_a(ClientWorld.java:235) ~[?:?] {re:mixin,re:classloading,xf:OptiFine:default,xf:fml:xaerominimap:xaero_clientworldclass,pl:mixin:APP:mixins.sndctrl.json:MixinClientWorld,pl:mixin:A}
    at net.minecraft.client.world.ClientWorld$$Lambda$4852/602011152.accept(Unknown Source) ~[?:?] {}
    at net.minecraft.world.World.func_217390_a(World.java:536) ~[?:?] {re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}
    at net.minecraft.client.world.ClientWorld.func_217419_d(ClientWorld.java:196) ~[?:?] {re:mixin,re:classloading,xf:OptiFine:default,xf:fml:xaerominimap:xaero_clientworldclass,pl:mixin:APP:mixins.sndctrl.json:MixinClientWorld,pl:mixin:A}
    at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1398) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.client.Minecraft.func_195542_b(Minecraft.java:904) [?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:553) [?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.client.main.Main.main(SourceFile:204) [?:?] {re:classloading}
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] {}
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51] {}
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51] {}
    at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51] {}
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51) [forge-1.15.2-31.2.45.jar:31.2] {}
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$434/685219002.call(Unknown Source) [forge-1.15.2-31.2.45.jar:31.2] {}
    at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-5.1.2.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-5.1.2.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-5.1.2.jar:?] {}
    at cpw.mods.modlauncher.Launcher.run(Launcher.java:81) [modlauncher-5.1.2.jar:?] {}
    at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) [modlauncher-5.1.2.jar:?] {}

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

-- Head --
Thread: Render thread
Stacktrace:
    at net.mcreator.afterwarmod.procedures.Y50WarningProcedure$1.checkGamemode(Y50WarningProcedure.java:72)
    at net.mcreator.afterwarmod.procedures.Y50WarningProcedure.executeProcedure(Y50WarningProcedure.java:78)
    at net.mcreator.afterwarmod.procedures.Y50WarningProcedure.onPlayerTick(Y50WarningProcedure.java:176)
    at net.minecraftforge.eventbus.ASMEventHandler_6_Y50WarningProcedure_onPlayerTick_PlayerTickEvent.invoke(.dynamic)
    at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:80)
    at net.minecraftforge.eventbus.EventBus.post(EventBus.java:258)
    at net.minecraftforge.fml.hooks.BasicEventHooks.onPlayerPostTick(BasicEventHooks.java:89)
    at net.minecraft.entity.player.PlayerEntity.func_70071_h_(PlayerEntity.java:280)
    at net.minecraft.client.entity.player.RemoteClientPlayerEntity.func_70071_h_(RemoteClientPlayerEntity.java:36)
    at net.minecraft.client.world.ClientWorld.func_217418_a(ClientWorld.java:235)
    at net.minecraft.client.world.ClientWorld$$Lambda$4852/602011152.accept(Unknown Source)

-- Entity being ticked --
Details:
    Entity Type: minecraft:player (net.minecraft.client.entity.player.RemoteClientPlayerEntity)
    Entity ID: 10181
    Entity Name: Jp_2003
    Entity's Exact location: 391.02, 67.18, -150.45
    Entity's Block location: World: (391,67,-151), Chunk: (at 7,4,9 in 24,-10; contains blocks 384,0,-160 to 399,255,-145), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)
    Entity's Momentum: 0.00, 0.00, 0.00
    Entity's Passengers: []
    Entity's Vehicle: ~~ERROR~~ NullPointerException: null
Stacktrace:
    at net.minecraft.world.World.func_217390_a(World.java:536)
    at net.minecraft.client.world.ClientWorld.func_217419_d(ClientWorld.java:196)

-- Affected level --
Details:
    All players: 2 total; [ClientPlayerEntity['LaTortiia45'/10624, l='MpServer', x=350.94, y=98.00, z=-79.63], RemoteClientPlayerEntity['Jp_2003'/10181, l='MpServer', x=391.02, y=67.18, z=-150.45]]
    Chunk stats: Client Chunk Cache: 625, 392
    Level dimension: DimensionType{minecraft:overworld}
    Level name: MpServer
    Level seed: 7137162854360910884
    Level generator: ID 00 - default, ver 1. Features enabled: false
    Level generator options: {}
    Level spawn location: World: (-208,64,-208), Chunk: (at 0,4,0 in -13,-13; contains blocks -208,0,-208 to -193,255,-193), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1)
    Level time: 173101 game time, 173101 day time
    Known server brands: 
    Level was modded: false
    Level storage version: 0x00000 - Unknown?
    Level weather: Rain time: 0 (now: true), thunder time: 0 (now: false)
    Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
    Server brand: forge
    Server type: Non-integrated multiplayer server
Stacktrace:
    at net.minecraft.client.world.ClientWorld.func_72914_a(ClientWorld.java:611)
    at net.minecraft.client.Minecraft.func_71396_d(Minecraft.java:1763)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:567)
    at net.minecraft.client.main.Main.main(SourceFile:204)
    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:497)
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51)
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$434/685219002.call(Unknown Source)
    at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37)
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54)
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72)
    at cpw.mods.modlauncher.Launcher.run(Launcher.java:81)
    at cpw.mods.modlauncher.Launcher.main(Launcher.java:65)

I think it has to do with a procedure called Y=50 but I can't understand the problem with it, if anyone can help me it would honestly get awsome!!

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks Klemen!!  I just want…
Wed, 01/20/2021 - 22:37

Thanks Klemen!! 

I just want say, and I think I speak for most, if not all of the MCreator community, that we really appreciate all the work you've done this past few years, and even though you might be leaving development for a while, the thing you created will continue existing and improving!

Thanks!