Add Discord RPC back with new features, add beta splitscreen support, PR's from MCLCE used in this https://github.com/MCLCE/MinecraftConsoles/pull/1044 https://github.com/MCLCE/MinecraftConsoles/pull/1136 https://github.com/MCLCE/MinecraftConsoles/pull/1245
16 lines
383 B
C++
16 lines
383 B
C++
#include "stdafx.h"
|
|
#include "net.minecraft.world.effect.h"
|
|
|
|
InstantenousMobEffect::InstantenousMobEffect(int id, bool isHarmful, eMinecraftColour color) : MobEffect(id, isHarmful, color)
|
|
{
|
|
}
|
|
|
|
bool InstantenousMobEffect::isInstantenous()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
bool InstantenousMobEffect::isDurationEffectTick(int remainingDuration, int amplification)
|
|
{
|
|
return remainingDuration >= 1;
|
|
} |