Changed inventory system to use real core inventory

This commit is contained in:
Anuken
2018-04-14 11:14:00 -04:00
parent 86b7966027
commit fcf62ada8f
16 changed files with 77 additions and 118 deletions

View File

@@ -185,7 +185,7 @@ public class Player extends Unit{
}
float backTrns = 4f, itemSize = 5f;
if(inventory.hasItem() && !control.input().isDroppingItem()){
if(inventory.hasItem()){
ItemStack stack = inventory.getItem();
Draw.rect(stack.item.region, x + Angles.trnsx(rotation + 180f, backTrns), y + Angles.trnsy(rotation + 180f, backTrns), itemSize, itemSize, rotation);
//Draw.tint(Color.WHITE);