diff --git a/2D/Screens/BlockSelectScreen.cs b/2D/Screens/BlockSelectScreen.cs index 933602385..4147f442f 100644 --- a/2D/Screens/BlockSelectScreen.cs +++ b/2D/Screens/BlockSelectScreen.cs @@ -120,7 +120,11 @@ namespace ClassicalSharp { } } + int lastCreatedIndex = -1000; void RecreateBlockInfoTexture() { + if( selectedIndex == lastCreatedIndex ) return; + lastCreatedIndex = selectedIndex; + GraphicsApi.DeleteTexture( ref blockInfoTexture ); if( selectedIndex == -1 ) return;