Skip to content

Commit

Permalink
fix: class name updateds to avoid crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
sekwah41 committed Jul 12, 2022
1 parent 80b5836 commit ab0dfd2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ dependencies {
// Specify the version of Minecraft to use, If this is any group other then 'net.minecraft' it is assumed
// that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied.
// The userdev artifact is a special name and will get all sorts of transformations applied to it.
minecraft 'net.minecraftforge:forge:1.19-41.0.93'
minecraft 'net.minecraftforge:forge:1.19-41.0.94'

//implementation 'org.spongepowered:mixin:0.8.5'
//annotationProcessor 'org.spongepowered:mixin:0.8.5:processor'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ public static void onPlayerUpdate(TickEvent.PlayerTickEvent event) {
}

@SubscribeEvent(priority = EventPriority.LOWEST)
public static void entityLivingUpdate(LivingEvent.LivingUpdateEvent event) {
CapabilityBroadcaster.checkCapData(event.getEntityLiving());
public static void entityLivingUpdate(LivingEvent.LivingTickEvent event) {
CapabilityBroadcaster.checkCapData(event.getEntity());
}

@SubscribeEvent
public static void dimensionChange(PlayerEvent.PlayerChangedDimensionEvent event) {
if(event.getPlayer() instanceof ServerPlayer serverPlayer) {
if(event.getEntity() instanceof ServerPlayer serverPlayer) {
CapabilityBroadcaster.broadcastCapChanges(serverPlayer, true);
}
}
Expand All @@ -88,7 +88,7 @@ public static void dimensionChange(PlayerEvent.PlayerChangedDimensionEvent event
*/
@SubscribeEvent
public static void playerTracking(PlayerEvent.StartTracking event) {
if(event.getPlayer() instanceof ServerPlayer serverPlayer && event.getTarget() instanceof LivingEntity livingEntity) {
if(event.getEntity() instanceof ServerPlayer serverPlayer && event.getTarget() instanceof LivingEntity livingEntity) {
CapabilityBroadcaster.broadcastCapToPlayer(livingEntity, serverPlayer);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Other features and utilities are also included.
[[dependencies.sekclib]]
modId="forge"
mandatory=true
versionRange="[41.0.69,42)"
versionRange="[41.0.94,42)"
ordering="NONE"
side="BOTH"

Expand Down

0 comments on commit ab0dfd2

Please sign in to comment.