mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-24 05:10:42 -04:00
fix starting with half instead of full health
This commit is contained in:
parent
46fa9eb12b
commit
c4ba902141
@ -1,5 +1,6 @@
|
||||
// Copyright 2014-2017 ClassicalSharp | Licensed under BSD-3
|
||||
using System;
|
||||
using ClassicalSharp.Entities;
|
||||
using OpenTK;
|
||||
|
||||
#if USE16_BIT
|
||||
@ -58,9 +59,7 @@ namespace ClassicalSharp {
|
||||
static BlockID RotateOther(Game game, BlockID block, string name, Vector3 offset) {
|
||||
// Fence type blocks
|
||||
if (game.BlockInfo.FindID(name + "-UD") == -1) {
|
||||
float headY = game.LocalPlayer.HeadY;
|
||||
if (headY < 0) headY += 360;
|
||||
|
||||
float headY = LocationUpdate.Clamp(game.LocalPlayer.HeadY);
|
||||
if (headY < 45 || (headY >= 135 && headY < 225) || headY > 315)
|
||||
return Find(game, block, name + "-WE");
|
||||
return Find(game, block, name + "-NS");
|
||||
|
@ -143,6 +143,7 @@ namespace ClassicalSharp.Entities {
|
||||
Hacks.WOMStyleHacks = !game.ClassicMode && Options.GetBool(OptionsKey.WOMStyleHacks, false);
|
||||
Hacks.Enabled = !game.PureClassic && Options.GetBool(OptionsKey.HacksEnabled, true);
|
||||
Hacks.FullBlockStep = !game.ClassicMode && Options.GetBool(OptionsKey.FullBlockStep, false);
|
||||
Health = 20;
|
||||
}
|
||||
|
||||
public void Ready(Game game) { }
|
||||
@ -155,6 +156,7 @@ namespace ClassicalSharp.Entities {
|
||||
Velocity = Vector3.Zero;
|
||||
physics.jumpVel = 0.42f;
|
||||
physics.serverJumpVel = 0.42f;
|
||||
Health = 20;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user