mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-27 02:49:15 +00:00
也许修复了FAWE?
This commit is contained in:
@@ -35,5 +35,5 @@ public interface CompatibilityManager {
|
||||
|
||||
int getPlayerProtocolVersion(UUID uuid);
|
||||
|
||||
void skillExecute(String skill, float power, Player player);
|
||||
void executeMMSkill(String skill, float power, Player player);
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ public class MythicMobsSkillFunction<CTX extends Context> extends AbstractCondit
|
||||
@Override
|
||||
protected void runInternal(CTX ctx) {
|
||||
ctx.getOptionalParameter(DirectContextParameters.PLAYER).ifPresent(it -> {
|
||||
CraftEngine.instance().compatibilityManager().skillExecute(this.skill, this.power, it);
|
||||
CraftEngine.instance().compatibilityManager().executeMMSkill(this.skill, this.power, it);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -13,6 +13,8 @@ public interface WorldManager extends Manageable {
|
||||
|
||||
CEWorld getWorld(UUID uuid);
|
||||
|
||||
CEWorld[] getWorlds();
|
||||
|
||||
void loadWorld(World world);
|
||||
|
||||
void loadWorld(CEWorld world);
|
||||
|
||||
Reference in New Issue
Block a user