Skip to content

Commit

Permalink
Re-enable bundle selected item
Browse files Browse the repository at this point in the history
  • Loading branch information
misode committed Dec 6, 2024
1 parent 1c7ddca commit 9d71527
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/render/ItemModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { clamp } from '../math/index.js'
import type { Color } from '../util/index.js'
import { Json } from '../util/index.js'
import { Cull } from './Cull.js'
import type { ItemRendererResources, ItemRenderingContext } from './index.js'
import type { ItemRendererResources, ItemRenderingContext } from './ItemRenderer.js'
import { ItemRenderer } from './ItemRenderer.js'
import { ItemTint } from './ItemTint.js'
import { Mesh } from './Mesh.js'
import { SpecialModel } from './SpecialModel.js'
Expand Down Expand Up @@ -394,14 +395,13 @@ export namespace ItemModel {
return new Mesh()
}
const selectedItem = ItemStack.fromNbt(selectedItemTag)
return new Mesh()
// return ItemRenderer.getItemMesh(selectedItem, resources, {
// ...context,
// 'bundle/selected_item': -1,
// selected: false,
// carried: false,
// use_duration: -1,
// })
return ItemRenderer.getItemMesh(selectedItem, resources, {
...context,
'bundle/selected_item': -1,
selected: false,
carried: false,
use_duration: -1,
})
}
}
}

0 comments on commit 9d71527

Please sign in to comment.