mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-24 05:10:42 -04:00
Fix blocks previously sprite not reverting back to default collision bounds (Thanks fam0r)
This commit is contained in:
parent
89e4b91a67
commit
810b2e8a9a
@ -125,6 +125,7 @@ namespace ClassicalSharp {
|
||||
Name[id] = DefaultName(id);
|
||||
Tinted[id] = false;
|
||||
|
||||
Draw[id] = DefaultSet.Draw(id);
|
||||
if (Draw[id] == DrawType.Sprite) {
|
||||
MinBB[id] = new Vector3(2.50f/16f, 0, 2.50f/16f);
|
||||
MaxBB[id] = new Vector3(13.5f/16f, 1, 13.5f/16f);
|
||||
@ -134,7 +135,7 @@ namespace ClassicalSharp {
|
||||
MaxBB[id].Y = DefaultSet.Height(id);
|
||||
}
|
||||
|
||||
SetBlockDraw(id, DefaultSet.Draw(id));
|
||||
SetBlockDraw(id, Draw[id]);
|
||||
CalcRenderBounds(id);
|
||||
|
||||
LightOffset[id] = CalcLightOffset(id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user