mirror of
https://github.com/GTNewHorizons/ForgeRelocation.git
synced 2026-11-09 15:15:03 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
972ccacc69 | ||
|
|
e58530f587 |
No files matched your search
@@ -30,3 +30,4 @@ src/main/resources/mixins.*.json
|
||||
*.bat
|
||||
*.DS_Store
|
||||
!gradlew.bat
|
||||
layout.json
|
||||
@@ -52,7 +52,9 @@ object RelocationClientEventHandler {
|
||||
|
||||
@SubscribeEvent
|
||||
def clientTick(event: TickEvent.ClientTickEvent) {
|
||||
if (event.phase == TickEvent.Phase.END)
|
||||
if (event.phase == TickEvent.Phase.END) {
|
||||
MovementManager2.onTick(true)
|
||||
MovingRenderer.onTick()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -106,6 +106,13 @@ object MovingRenderer {
|
||||
render(b.x, b.y, b.z, renderPos(s, frame))
|
||||
}
|
||||
|
||||
def onTick() = {
|
||||
if (oldWorld != null && world == null) {
|
||||
oldWorld = null
|
||||
renderBlocks = null
|
||||
}
|
||||
}
|
||||
|
||||
def onPreRenderTick(time: Float) {
|
||||
isRendering = true
|
||||
frame = time
|
||||
|
||||
Reference in new issue
Block a user