修复部分bug
This commit is contained in:
@@ -38,7 +38,7 @@ mod_name=maid useful task
|
|||||||
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
|
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
|
||||||
mod_license=MIT
|
mod_license=MIT
|
||||||
# The mod version. See https://semver.org/
|
# The mod version. See https://semver.org/
|
||||||
mod_version=1.3.1
|
mod_version=1.3.2
|
||||||
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
|
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
|
||||||
# This should match the base package used for the mod sources.
|
# This should match the base package used for the mod sources.
|
||||||
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ abstract public class VehicleBroomMixin extends AbstractEntityFromItem implement
|
|||||||
this.maid_useful_tasks$vc_type = MaidVehicleControlType.NONE;
|
this.maid_useful_tasks$vc_type = MaidVehicleControlType.NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Inject(method = "tickRidden", at = @At(value = "INVOKE", target = "Lcom/github/tartaricacid/touhoulittlemaid/entity/item/AbstractEntityFromItem;tickRidden(Lnet/minecraft/world/entity/player/Player;Lnet/minecraft/world/phys/Vec3;)V"))
|
@Inject(method = "tickRidden", at = @At(value = "TAIL"))
|
||||||
public void maid_useful_tasks$tickRidden(CallbackInfo ci) {
|
public void maid_useful_tasks$tickRidden(CallbackInfo ci) {
|
||||||
if (maid_useful_tasks$vc_type == MaidVehicleControlType.NONE) {
|
if (maid_useful_tasks$vc_type == MaidVehicleControlType.NONE) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ public class MaidRevivePlayerTask implements IMaidTask {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isEnable(EntityMaid maid) {
|
public boolean isEnable(EntityMaid maid) {
|
||||||
return PlayerRevive.isEnable() && Config.enableReviveAggro;
|
return PlayerRevive.isEnable() && Config.enableReviveTask;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -70,4 +70,11 @@ description='''${mod_description}'''
|
|||||||
versionRange="[1.2.2,)"
|
versionRange="[1.2.2,)"
|
||||||
ordering="AFTER"
|
ordering="AFTER"
|
||||||
side="BOTH"
|
side="BOTH"
|
||||||
|
[[dependencies."${mod_id}"]]
|
||||||
|
modId="playerrevive"
|
||||||
|
mandatory=false
|
||||||
|
versionRange="[2.0.16,)"
|
||||||
|
ordering="AFTER"
|
||||||
|
side="BOTH"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user