Skip to content

Commit

Permalink
Fixes very time-consuming processing in assetCompile task
Browse files Browse the repository at this point in the history
  • Loading branch information
rainboyan committed Jun 7, 2024
1 parent 140e458 commit 520e6ad
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,7 @@ class GenericAssetFile extends AbstractAssetFile {
* @return
*/
public Byte[] getBytes() {
Byte[] newByteArray = new Byte[inputStream.bytes.length]
for (int i = 0; i < inputStream.bytes.length; i++) {
newByteArray[i] = inputStream.bytes[i]
}
return newByteArray
return inputStream.bytes
}

/**
Expand Down

0 comments on commit 520e6ad

Please sign in to comment.