Skip to content

Commit

Permalink
Fix crash with Identity
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrofab committed May 3, 2021
1 parent a653854 commit e756bfe
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
7 changes: 7 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
------------------------------------------------------
Version 1.6.2
------------------------------------------------------
#### Pandemonium
**Mod Compatibility**
- Identity: Fixed a crash when opening the Identity menu

------------------------------------------------------
Version 1.6.1
------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion expansions/pandemonium/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
impersonate_version=2.2.0
automatone_version=0.3.1
automatone_version=0.3.2
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@
*/
package ladysnake.pandemonium.common.entity;

import baritone.api.fakeplayer.FakeClientPlayerEntity;
import ladysnake.pandemonium.common.entity.fakeplayer.FakePlayerGuide;
import ladysnake.requiem.Requiem;
import net.fabricmc.fabric.api.object.builder.v1.entity.FabricEntityTypeBuilder;
import net.minecraft.client.world.ClientWorld;
import net.minecraft.entity.EntityDimensions;
import net.minecraft.entity.EntityType;
import net.minecraft.entity.SpawnGroup;
Expand All @@ -48,7 +50,9 @@
public class PandemoniumEntities {
public static final EntityType<PlayerEntity> PLAYER_SHELL = FabricEntityTypeBuilder.<PlayerEntity>createLiving()
.spawnGroup(SpawnGroup.MISC)
.entityFactory((type, world) -> new PlayerShellEntity(type, (ServerWorld) world))
.entityFactory((type, world) -> world.isClient
? new FakeClientPlayerEntity(type, (ClientWorld) world)
: new PlayerShellEntity(type, (ServerWorld) world))
.defaultAttributes(PlayerShellEntity::createPlayerShellAttributes)
.dimensions(EntityDimensions.changing(EntityType.PLAYER.getWidth(), EntityType.PLAYER.getHeight()))
.trackRangeBlocks(64)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"requiem:advancements.requiem.kung_fu_panda.description": "As a panda, hit something with a wooden sword",
"pandemonium:commands.shell.split.fail.mortal": "Failed to split %s as they are Mortal",
"pandemonium:commands.shell.split.fail.vagrant": "Failed to split %s as they are already Vagrant",
"pandemonium:commands.shell.fail.not_shell": "%s is not a player shell"
"pandemonium:commands.shell.fail.not_shell": "%s is not a player shell",
"entity.pandemonium.player_shell": "Player Shell"
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
org.gradle.jvmargs = -Xmx5G

# Base properties
mod_version = 1.6.1
mod_version = 1.6.2
maven_group = io.github.ladysnake

#General
Expand Down

0 comments on commit e756bfe

Please sign in to comment.