mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-26 18:45:37 +00:00
fix: properly bind minecart texture
happened because of a bad merge
This commit is contained in:
parent
8d1c7c9f74
commit
ed726d291a
|
|
@ -21,6 +21,8 @@ void MinecartRenderer::render(std::shared_ptr<Entity> _cart, double x, double y,
|
|||
|
||||
glPushMatrix();
|
||||
|
||||
bindTexture(cart);
|
||||
|
||||
// 4jcraft added a bunch of casts to prever overflow
|
||||
int64_t seed = (int64_t)((uint64_t)cart->entityId * 493286711ULL);
|
||||
seed = (int64_t)(((uint64_t)seed * (uint64_t)seed * 4392167121ULL) +
|
||||
|
|
|
|||
Loading…
Reference in a new issue