Skip to content

Commit

Permalink
Partially Fixed Block Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrick committed Jan 4, 2014
1 parent 47bb68b commit ec84dc7
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Assets/Scripts/PlayerIO.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
}

Expand Down
Binary file modified Library/CurrentMaximizeLayout.dwlt
Binary file not shown.
Binary file modified Library/ScriptAssemblies/Assembly-CSharp.dll
Binary file not shown.
Binary file modified Library/ScriptAssemblies/Assembly-CSharp.dll.mdb
Binary file not shown.
Binary file modified Library/assetDatabase3
Binary file not shown.
Binary file modified Library/metadata/9c/9cffcde21a77c864389d63351fb4e728
Binary file not shown.

0 comments on commit ec84dc7

Please sign in to comment.