GTNewHorizons / Hodgepodge

A HodgePodge of patches
GNU Lesser General Public License v3.0
39 stars 62 forks source link

Check for fake players before sending hotbar message #405

Closed Caedis closed 3 months ago

Caedis commented 3 months ago

Fixes an issue with Backhand

java.lang.ClassCastException: class xonin.backhand.client.world.ClientFakePlayer cannot be cast to class net.minecraft.entity.player.EntityPlayerMP (xonin.backhand.client.world.ClientFakePlayer and net.minecraft.entity.player.EntityPlayerMP are in unnamed module of loader 'Launch' @2b4bac49)
    at Launch//net.minecraft.block.BlockBed.redirect$bcf000$hodgepodge$sendMessageAboveHotbar(SourceFile:525)
    at Launch//net.minecraft.block.BlockBed.func_149727_a(SourceFile:107)
    at Launch//xonin.backhand.client.world.ClientFakePlayer.simulateBlockInteraction(ClientFakePlayer.java:85)