mirror of
https://github.com/squeek502/Squake.git
synced 2025-09-08 11:37:54 -04:00
Fixed Squeedometer integration
This commit is contained in:
parent
5a2c2bb0be
commit
97d8bd7107
@ -10,7 +10,7 @@ import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
|||||||
import cpw.mods.fml.common.network.NetworkMod;
|
import cpw.mods.fml.common.network.NetworkMod;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
|
||||||
@Mod(modid = ModInfo.MODID, version = ModInfo.VERSION, dependencies = "required-after:PlayerAPI")
|
@Mod(modid = ModInfo.MODID, version = ModInfo.VERSION, dependencies = "required-after:PlayerAPI;after:Squeedometer")
|
||||||
@NetworkMod(clientSideRequired = true)
|
@NetworkMod(clientSideRequired = true)
|
||||||
public class ModQuakeMovement
|
public class ModQuakeMovement
|
||||||
{
|
{
|
||||||
|
@ -16,7 +16,7 @@ public class QuakeClientPlayer extends ClientPlayerBase
|
|||||||
|
|
||||||
List<float[]> baseVelocities = new ArrayList<float[]>();
|
List<float[]> baseVelocities = new ArrayList<float[]>();
|
||||||
|
|
||||||
private static Class<?> guiSpeedometer = null;
|
private static Class<?> hudSpeedometer = null;
|
||||||
private static Method setDidJumpThisTick = null;
|
private static Method setDidJumpThisTick = null;
|
||||||
private static Method setIsJumping = null;
|
private static Method setIsJumping = null;
|
||||||
static
|
static
|
||||||
@ -25,9 +25,9 @@ public class QuakeClientPlayer extends ClientPlayerBase
|
|||||||
{
|
{
|
||||||
if (Loader.isModLoaded("Squeedometer"))
|
if (Loader.isModLoaded("Squeedometer"))
|
||||||
{
|
{
|
||||||
guiSpeedometer = Class.forName("squeek.speedometer.GuiSpeedometer");
|
hudSpeedometer = Class.forName("squeek.speedometer.HudSpeedometer");
|
||||||
setDidJumpThisTick = guiSpeedometer.getDeclaredMethod("setDidJumpThisTick", new Class<?>[]{boolean.class});
|
setDidJumpThisTick = hudSpeedometer.getDeclaredMethod("setDidJumpThisTick", new Class<?>[]{boolean.class});
|
||||||
setIsJumping = guiSpeedometer.getDeclaredMethod("setIsJumping", new Class<?>[]{boolean.class});
|
setIsJumping = hudSpeedometer.getDeclaredMethod("setIsJumping", new Class<?>[]{boolean.class});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"modid": "QuakeMovement",
|
"modid": "Squake",
|
||||||
"name": "Quake Movement",
|
"name": "Squake",
|
||||||
"description": "A quake movement.",
|
"description": "Quake-style movement in Minecraft.",
|
||||||
"version": "${version}",
|
"version": "${version}",
|
||||||
"mcversion": "${mcversion}",
|
"mcversion": "${mcversion}",
|
||||||
"url": "",
|
"url": "",
|
||||||
"updateUrl": "",
|
"updateUrl": "",
|
||||||
"authors": ["squeek"],
|
"authorList": ["squeek"],
|
||||||
"credits": "",
|
"credits": "",
|
||||||
"logoFile": "",
|
"logoFile": "",
|
||||||
"screenshots": [],
|
"screenshots": [],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user