mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-09-08 18:35:18 -05:00
hopefully fixed issue with respawning
This commit is contained in:
@@ -101,7 +101,7 @@ public class dMoveStateManager : NetworkBehaviour
|
||||
////
|
||||
|
||||
////Initialize Variables
|
||||
layerMask = (1 << 0);
|
||||
layerMask = (1 << 17);
|
||||
//layerMask = ~layerMask;
|
||||
////
|
||||
|
||||
|
||||
@@ -100,7 +100,7 @@ public class MoveStateManager : NetworkBehaviour
|
||||
////
|
||||
|
||||
////Initialize Variables
|
||||
layerMask = (1 << 0);
|
||||
layerMask = (1 << 17);
|
||||
//layerMask = ~layerMask;
|
||||
////
|
||||
|
||||
|
||||
@@ -74,7 +74,13 @@ public class PlayerInventory : NetworkBehaviour
|
||||
foreach(string itemName in items){
|
||||
if (itemName == "" || itemName == " ") { continue; }
|
||||
|
||||
AddItem(allItems[itemName]);
|
||||
if(!playerItemDict.ContainsKey(itemName)){
|
||||
AddItem(allItems[itemName]);
|
||||
}
|
||||
else{
|
||||
Debug.Log("Attempted To Equip Item Already in Inventory");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user