diff --git a/Assets/Scripts/PlayerIO.cs b/Assets/Scripts/PlayerIO.cs index 3e7318e..11c3a01 100644 --- a/Assets/Scripts/PlayerIO.cs +++ b/Assets/Scripts/PlayerIO.cs @@ -17,6 +17,10 @@ void Start () { // Update is called once per frame void Update () { + if (GameObject.FindWithTag ("FPSController").transform.position.y < -20) { + Debug.Log("Test"); + GameObject.FindWithTag("FPSController").transform.position = new Vector3(GameObject.FindWithTag("FPSController").transform.position.x, 60, GameObject.FindWithTag("FPSController").transform.position.z); + } if (Input.GetMouseButtonDown(0) || Input.GetMouseButtonDown(1) || Input.GetMouseButtonDown(2)){ Ray ray = camera.ViewportPointToRay(new Vector3(0.5f,0.5f,0.5f)); RaycastHit hit; @@ -39,7 +43,7 @@ void Update () { Vector3 p = hit.point; if (selectedInventory != 0){ p += hit.normal / 4; - if (p != new Vector3 (GameObject.FindWithTag("MinecraftPlayer").transform.position.x,GameObject.FindWithTag("MinecraftPlayer").transform.position.y,GameObject.FindWithTag("MinecraftPlayer").transform.position.z)) + chunk.SetBrick(selectedInventory,p); } diff --git a/Library/CurrentMaximizeLayout.dwlt b/Library/CurrentMaximizeLayout.dwlt index dbda8e5..ed5abd8 100644 Binary files a/Library/CurrentMaximizeLayout.dwlt and b/Library/CurrentMaximizeLayout.dwlt differ diff --git a/Library/ScriptAssemblies/Assembly-CSharp.dll b/Library/ScriptAssemblies/Assembly-CSharp.dll index 75ec7f8..074400c 100644 Binary files a/Library/ScriptAssemblies/Assembly-CSharp.dll and b/Library/ScriptAssemblies/Assembly-CSharp.dll differ diff --git a/Library/ScriptAssemblies/Assembly-CSharp.dll.mdb b/Library/ScriptAssemblies/Assembly-CSharp.dll.mdb index 9df23f3..040e957 100644 Binary files a/Library/ScriptAssemblies/Assembly-CSharp.dll.mdb and b/Library/ScriptAssemblies/Assembly-CSharp.dll.mdb differ diff --git a/Library/assetDatabase3 b/Library/assetDatabase3 index 6f69f29..1c3c5a7 100644 Binary files a/Library/assetDatabase3 and b/Library/assetDatabase3 differ diff --git a/Library/metadata/9c/9cffcde21a77c864389d63351fb4e728 b/Library/metadata/9c/9cffcde21a77c864389d63351fb4e728 index b89dc46..7379f6f 100644 Binary files a/Library/metadata/9c/9cffcde21a77c864389d63351fb4e728 and b/Library/metadata/9c/9cffcde21a77c864389d63351fb4e728 differ