MCPcopy Create free account
hub / github.com/Garten/sourcecraft / isUpToDate

Method isUpToDate

src/periphery/TextureOptions.java:26–34  ·  view source on GitHub ↗
(TextureOptions one, TextureOptions two)

Source from the content-addressed store, hash-verified

24 }
25
26 public static boolean isUpToDate(TextureOptions one, TextureOptions two) {
27 if (one == null) {
28 return false;
29 }
30 if (two == null) {
31 return true;
32 }
33 return one.getTextureVersion() >= two.getTextureVersion();
34 }
35
36 public void setScale(int scale) {
37 this.scale = scale;

Callers 1

areTexturesUpToDateMethod · 0.95

Calls 1

getTextureVersionMethod · 0.80

Tested by

no test coverage detected