mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
Done with utilities. Need some testing on ultraparty and few fix on auto stunt and quick customgame
This commit is contained in:
parent
39845e7b61
commit
77d16e63c7
19 changed files with 1221 additions and 1093 deletions
|
|
@ -1,15 +1,17 @@
|
|||
# ba_meta require api 7
|
||||
import ba
|
||||
# Porting to api 8 made easier by baport.(https://github.com/bombsquad-community/baport)
|
||||
# ba_meta require api 8
|
||||
import babase
|
||||
import bascenev1 as bs
|
||||
|
||||
original_getmodel = ba.getmodel
|
||||
original_getmesh = bs.getmesh
|
||||
|
||||
|
||||
def get_model_gracefully(model):
|
||||
if model is not None:
|
||||
return original_getmodel(model)
|
||||
def get_mesh_gracefully(mesh):
|
||||
if mesh is not None:
|
||||
return original_getmesh(mesh)
|
||||
|
||||
|
||||
# ba_meta export plugin
|
||||
class Main(ba.Plugin):
|
||||
class Main(babase.Plugin):
|
||||
def on_app_running(self):
|
||||
ba.getmodel = get_model_gracefully
|
||||
bs.getmesh = get_mesh_gracefully
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue