diff --git a/TrueCraft.Client/Rendering/FlatQuadRenderer.cs b/TrueCraft.Client/Rendering/FlatQuadRenderer.cs index 1fffa19..66d4a36 100644 --- a/TrueCraft.Client/Rendering/FlatQuadRenderer.cs +++ b/TrueCraft.Client/Rendering/FlatQuadRenderer.cs @@ -7,7 +7,7 @@ namespace TrueCraft.Client.Rendering { public abstract class FlatQuadRenderer : BlockRenderer { - protected virtual Vector2 TextureMap { get; } + protected virtual Vector2 TextureMap { get { return Vector2.Zero; } } protected Vector2[] Texture; protected FlatQuadRenderer() diff --git a/TrueCraft.Client/TrueCraftGame.cs b/TrueCraft.Client/TrueCraftGame.cs index 8935bd6..d0be9ad 100644 --- a/TrueCraft.Client/TrueCraftGame.cs +++ b/TrueCraft.Client/TrueCraftGame.cs @@ -246,7 +246,7 @@ namespace TrueCraft.Client private void OnMouseComponentMove(object sender, MouseMoveEventArgs e) { - if (MouseCaptured) + if (MouseCaptured && IsActive) { var centerX = GraphicsDevice.Viewport.Width / 2; var centerY = GraphicsDevice.Viewport.Height / 2;